-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compaction fix and gather optimisation
* Compact was previously broken, because the compacted wals were being merged back into the full log in the Replay step. This change has pulled the compaction call into the same thread as the Replay calls, meaning we are able to purge the local log prior to replay (so only the compacted wal is persisted). * Compaction now also incorporates sort and dedup to cater for any historically broken wals (more of a cleanup task rather than an ongoing catch). * Fixed compaction to cater for new changes to Note handling (as we no longer use pointers to byte slices. * Large optimisation to gather algorithm, and more centralising (previously it wasn't using the `pull` function, but now it is).
- Loading branch information
1 parent
3cc82fa
commit 154bb2c
Showing
3 changed files
with
156 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.