rocksdb/utilities/write_batch_with_index
sdong 5cc9adf5ba WriteBatchWithIndex's Iterator bug of SeekToFirst() and SeekToLast()
Summary: WriteBatchWithIndex's iterator's SeekToFirst() and SeekToLast() use offset=0 to indicate it is smaller than all the keys, which is wrong. offset=0 will decode a key "" (the header decodes like that). It could be larger than other keys in non-default comparators. Fix it by using a special flag of offset to indicate searching to the beginning of the CF.

Test Plan: Add a unit test that used to fail. Also, add some more tests to related cases, though they don't fail for now.

Reviewers: igor

Reviewed By: igor

Subscribers: rven, yhchiang, ljin, leveldb

Differential Revision: https://reviews.facebook.net/D24873
2014-10-15 07:33:32 -07:00
..
write_batch_with_index_test.cc WriteBatchWithIndex's Iterator bug of SeekToFirst() and SeekToLast() 2014-10-15 07:33:32 -07:00
write_batch_with_index.cc WriteBatchWithIndex's Iterator bug of SeekToFirst() and SeekToLast() 2014-10-15 07:33:32 -07:00