sbtourist / Journal.IO

Journal.IO is a zero-dependency, fast and easy-to-use journal storage implementation.
Apache License 2.0
260 stars 39 forks source link

Compaction temp file shouldnt match regular log file names #51

Closed bseibel closed 10 years ago

bseibel commented 10 years ago

Create temporary compaction target file to be prefix.log.tmp instead of prefix.tmp.log

Prevents NumberFormatException on open if we happened to die mid compaction as it will no longer match the FilenameFilter on open.

sbtourist commented 10 years ago

Thanks!