This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce snapshots to improve compaction
A snapshot is just a db_header that contains a unique id, a pointer to the header and a pointer to the previous header. The snapshots thus form a linked list. When compaction runs the list is traversed to find the oldest snapshot and compaction is performed in chunks, a snapshot at a time walking back up the list. This allows docs that have have not been edited to be copied only once. If compaction crashes or is restarted to top off, it begins at the next snapshot after the update_seq. BugzID:12639
- Loading branch information
Bob Dionne
committed
Sep 30, 2011
1 parent
0b00ac4
commit 41298f6
Showing
4 changed files
with
133 additions
and
45 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
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