MrCroxx / RunKV

[WIP] An experimental cloud-native distributed KV engine for OLTP workload.
MIT License
68 stars 7 forks source link

replace SeekRandom with SeekRandomForward and SeekRandomBackward #25

Closed MrCroxx closed 2 years ago

MrCroxx commented 2 years ago

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.

MrCroxx commented 2 years ago

Close via #28 .