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
document Avoid dereferencing a null field 2014-10-07 01:40:29 -07:00
geodb
merge_operators
options convert Options from string 2014-10-10 10:00:12 -07:00
redis
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