njaard / sonnerie

A simple timeseries database
Other
264 stars 19 forks source link

Transactions that are the result of compactions should be sorted before successive transactions #16

Closed njaard closed 2 years ago

njaard commented 2 years ago

Right now if you do a minor compaction, the filename for the new transaction file is determined at the time the compacted database is committed. If another transaction is started after the compaction begins, and is committed before the compaction completes, the filename for the transaction will be ordered after that other transaction, which would violate the precedence of records.