Skip to content

Commit

Permalink
Cleanup comms pre-landing
Browse files Browse the repository at this point in the history
  • Loading branch information
mszeszko-meta committed Feb 12, 2025
1 parent b8471d2 commit eec3264
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/arena_wrapped_db_iter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void ArenaWrappedDBIter::MaybeAutoRefresh(bool is_seek,
// ---- T3: Seek(T)
//
bool valid = false;
std::string key = "";
std::string key;
if (!is_seek && db_iter_->Valid()) {
// The key() Slice is valid until the iterator state changes.
// Given that refresh is heavy-weight operation it itself,
Expand Down
11 changes: 8 additions & 3 deletions include/rocksdb/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -1956,9 +1956,14 @@ struct ReadOptions {
// negligible. We expect the default value to be true some time in the future.
//
// NOTE 1: Does not have effect on TransactionDB with WRITE_PREPARED or
// WRITE_UNPREPARED policies.
//
// NOTE 2: Not recommended if your application is reading UDT timestamps.
// WRITE_UNPREPARED policies (currently incompatible).
//
// NOTE 2: True is not recommended if using user-defined timestamp with
// persist_user_defined_timestamps=false and non-nullptr
// ReadOptions::timestamp or ReadOptions::iter_start_ts, because
// auto-refreshing iterator will not prevent user timestamp
// information from being dropped during iteration. Auto-refresh might
// be disabled for this combination in the future.
//
// Default: false
bool auto_refresh_iterator_with_snapshot = false;
Expand Down

0 comments on commit eec3264

Please sign in to comment.