-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure we have at least kHeaderSize immutable pages in log (#284)
It seems that when there is less than kHeaderSize immutable pages in log, we will not be able to dump the in-memory log into disk when the in-memory log is full. Added a check to enforce this requirement. A complication is compaction logic. In compaction logic, the logic makes sure that nothing will be dumped to disk, so it provides no backing storage path (the root_directory is "") and the requirement does not apply. So we will only throw error if root_directory is not "".
- Loading branch information
1 parent
88d7282
commit 9c6bd1a
Showing
2 changed files
with
11 additions
and
4 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