forked from cockroachdb/pebble
-
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.
db: add OnlyReadGuaranteedDurable to IterOptions
This is only supported for Iterators created on the DB, and excludes data in the memtable. This will be used for cockroachdb/cockroach#36262 which is a prerequisite for separating the state machine into a different DB. Note that RocksDB supports such behavior using a ReadTier setting equal to kPersistedTier, which this PR does not adopt because it was considered too flexible (and has limitations like not supporting iterators). See https://github.com/facebook/rocksdb/blob/f6d7ec1d02de1fa84eff61b7ac5a3c663bd63cd7/include/rocksdb/options.h#L1394-L1408 https://github.com/facebook/rocksdb/blob/f6d7ec1d02de1fa84eff61b7ac5a3c663bd63cd7/include/rocksdb/options.h#L1467-L1471 Additionally, if the exclusion of memtables is an implementation decision, as outlined in the comment in IterOptions, it allows us more flexibility in implementation in the future.
- Loading branch information
1 parent
db46dab
commit 616b945
Showing
4 changed files
with
81 additions
and
1 deletion.
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