CFIteratorImpl lower_bound and upper_bound
8 Nov
2023
8 Nov
'23
1:49 p.m.
Hi folks, I am reading RocksDBStore.cc <http://rocksdbstore.cc/> and trying to understand how the iterator works. I found myself positively puzzled by the implementation of lower_bound() and upper_bound() of CFIteratorImpl. It seems to be that upper_bound() doesn’t really set the upper bound for iteration. Instead, it just resets the lower bound, presumably to a more advanced position after the initial lower_bound() call, since it calls lower_bound(). It doesn’t reset the true upper bound, which is set in iterate_upper_bound and used by RocksDB. Is my understanding correct or am I missing something? Thanks, Yixin
1059
Age (days ago)
1059
Last active (days ago)
0 comments
1 participants
participants (1)
-
Yixin Jin