rocksdb/utilities
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
..
backupable backupable_db_test.cc: pass const string param by reference 2014-10-01 11:57:01 +02:00
compacted_db CompactedDB: log using the correct info_log 2014-09-29 12:45:04 -07:00
document Avoid dereferencing a null field 2014-10-07 01:40:29 -07:00
geodb fix more compile warnings 2014-09-05 14:14:37 +08:00
merge_operators Move include/utilities/*.h to include/rocksdb/utilities/*.h 2014-07-23 10:21:38 -04:00
options convert Options from string 2014-10-10 10:00:12 -07:00
redis RocksDBLite 2014-04-15 13:39:26 -07:00
spatialdb spatialdb/spatial_db.cc: use !empty() instead of 'size() > 0' 2014-09-30 23:30:32 +02:00
ttl ttl/ttl_test.cc: pass const string param by reference 2014-10-01 11:53:00 +02:00
write_batch_with_index WriteBatchWithIndex's Iterator bug of SeekToFirst() and SeekToLast() 2014-10-15 07:33:32 -07:00
merge_operators.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00