forked from dgraph-io/badger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix level 0 GC dataloss bug (dgraph-io#1090)
When all level 0 tables are kept in memory and GC is triggered, it is possible that GC removes data from the value log file which has not yet persisted to disk. This PR fixes this issue by garbage collecting only the data which has been written to SSTs on the disk. When L0 is in memory, we GC only the data which is stored in Level 1 onwards. When L0 is not in memory. we GC data Level 0 onwards.
- Loading branch information
Ibrahim Jarif
authored
Oct 23, 2019
1 parent
1afe2d0
commit 12dea02
Showing
3 changed files
with
90 additions
and
5 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