doc.to_s
end
+ def sequence
+ @state.key?("sequence") ? @state["sequence"] + 1 : 0
+ end
+
def data_stem
- sequence = (@state.key?("sequence") ? @state["sequence"] + 1 : 0)
@config["data_dir"] + format("/%03d/%03d/%03d", sequence / 1000000, (sequence / 1000) % 1000, (sequence % 1000))
end
# fsync the files in their new locations, in case the inodes have
# changed in the move / copy.
- fsync(data_fie)
+ fsync(data_file)
fsync(@config["state_file"])
fsync(data_state_file)