The expected behavior of SeekRandom is move to the exact given key or the "next" key. "next" here actually means "prev" if the iterator is expected to be move backward.
Especially for MergeIterator. It's useful for changing the direction of it correctly.
The expected behavior of
SeekRandom
is move to the exact given key or the "next" key. "next" here actually means "prev" if the iterator is expected to be move backward.Especially for
MergeIterator
. It's useful for changing the direction of it correctly.