]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix WriteBatchWithIndex's SeekForPrev() (#4559)
authorSiying Dong <siying.d@fb.com>
Fri, 19 Oct 2018 21:38:32 +0000 (14:38 -0700)
committersdong <siying.d@fb.com>
Fri, 19 Oct 2018 22:44:58 +0000 (15:44 -0700)
commitfef38d947737f264a486d10e0e0719d3786cd3e2
tree16eb19470a5958741d96cb543ef09ebf6624b99f
parent4d461733e467e1a15311cef346d0639e5e797e25
Fix WriteBatchWithIndex's SeekForPrev() (#4559)

Summary:
WriteBatchWithIndex's SeekForPrev() has a bug that we internally place the position just before the seek key rather than after. This makes the iterator to miss the result that is the same as the seek key. Fix it by position the iterator equal or smaller.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4559

Differential Revision: D10468534

Pulled By: siying

fbshipit-source-id: 2fb371ae809c561b60a1c11cef71e1c66fea1f19
HISTORY.md
utilities/write_batch_with_index/write_batch_with_index.cc
utilities/write_batch_with_index/write_batch_with_index_internal.cc
utilities/write_batch_with_index/write_batch_with_index_internal.h
utilities/write_batch_with_index/write_batch_with_index_test.cc