Skip to content

Commit

Permalink
Add defaults to ReadOptions doc (facebook#7215)
Browse files Browse the repository at this point in the history
Summary:
Very small improvements to document the defaults.

Pull Request resolved: facebook#7215

Reviewed By: zhichao-cao

Differential Revision: D22902286

fbshipit-source-id: a754d172a0d8e4c03754f6f1771d4a693d60a770
  • Loading branch information
adamretter authored and facebook-github-bot committed Aug 3, 2020
1 parent d941b89 commit 18efd76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/rocksdb/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,8 @@ struct ReadOptions {
// block cache?
// Callers may wish to set this field to false for bulk scans.
// This would help not to the change eviction order of existing items in the
// block cache. Default: true
// block cache.
// Default: true
bool fill_cache;

// Specify to create a tailing iterator -- a special iterator that has a
Expand All @@ -1304,13 +1305,15 @@ struct ReadOptions {
// If true when calling Get(), we also skip prefix bloom when reading from
// block based table. It provides a way to read existing data after
// changing implementation of prefix extractor.
// Default: false
bool total_order_seek;

// When true, by default use total_order_seek = true, and RocksDB can
// selectively enable prefix seek mode if won't generate a different result
// from total_order_seek, based on seek key, and iterator upper bound.
// Not suppported in ROCKSDB_LITE mode, in the way that even with value true
// prefix mode is not used.
// Default: false
bool auto_prefix_mode;

// Enforce that the iterator only iterates over the same prefix as the seek.
Expand Down Expand Up @@ -1366,6 +1369,7 @@ struct ReadOptions {
// only the most recent version visible to timestamp is returned.
// The user-specified timestamp feature is still under active development,
// and the API is subject to change.
// Default: nullptr
const Slice* timestamp;
const Slice* iter_start_ts;

Expand Down

0 comments on commit 18efd76

Please sign in to comment.