File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
include/rocksdb/utilities
utilities/write_batch_with_index Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ class WBWIIterator {
88
88
virtual bool HasOverWrittenSingleDel () const { return false ; }
89
89
90
90
// Returns n where the current entry is the n-th update to the current key.
91
+ // The update count starts from 1.
91
92
// Only valid if WBWI is created with overwrite_key = true.
92
93
virtual uint32_t GetUpdateCount () const { return 0 ; }
93
94
};
Original file line number Diff line number Diff line change @@ -165,7 +165,8 @@ struct WriteBatchIndexEntry {
165
165
uint32_t column_family; // column family of the entry.
166
166
// The following three fields are only maintained when the WBWI is created
167
167
// with overwrite_key = true.
168
- uint32_t update_count; // number of updates for this key up to this entry.
168
+ uint32_t update_count; // The number of updates (1-based) for this key up to
169
+ // this entry.
169
170
bool has_single_del; // whether single del was issued for this key
170
171
bool has_overwritten_single_del; // whether a single del for this key was
171
172
// overwritten by another key
You can’t perform that action at this time.
0 commit comments