rocksdb/utilities
agiardullo 0fb70a800e Return MergeInProgress when fetching from transactions or WBWI with overwrite_key
Summary:
WriteBatchWithIndex::GetFromBatchAndDB only works correctly for overwrite_key=false.  Transactions use overwrite_key=true (since WriteBatchWithIndex::GetIteratorWithBase only works when overwrite_key=true).  So currently, Transactions could return incorrectly merged results when calling Get/GetForUpdate().

Until a permanent fix can be put in place, Transaction::Get[ForUpdate] and WriteBatchWithIndex::GetFromBatch[AndDB] will now return MergeInProgress if the most recent write to a key in the batch is a Merge.

Test Plan: more tests

Reviewers: sdong, yhchiang, rven, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D47817
2015-09-30 11:45:32 -07:00
..
backupable Adding a verifyBackup method to BackupEngine 2015-09-03 17:27:21 -07:00
checkpoint Fix printf format for size_t 2015-09-15 11:00:52 -07:00
compaction_filters RemoveEmptyValueCompactionFilter - A compaction filter which removes entries which have an empty value 2015-07-16 11:50:10 +01:00
convenience Add function 'GetInfoLogList()' 2015-08-05 16:16:46 -07:00
document Skip unsupported tests in ROCKSDB_LITE 2015-07-20 11:24:54 -07:00
flashcache Fix the compilation error in flashcache.cc on Mac 2015-04-07 15:27:23 -07:00
geodb Tests to avoid to use TMPDIR directly 2015-07-21 19:07:34 -07:00
leveldb_options Added CompatibleOptions for compatibility with LevelDB Options 2014-11-20 19:24:39 -08:00
merge_operators Tests to avoid to use TMPDIR directly 2015-07-21 19:07:34 -07:00
redis Tests to avoid to use TMPDIR directly 2015-07-21 19:07:34 -07:00
spatialdb Block spatial_db_test in ROCKSDB_LITE 2015-07-13 18:35:03 -07:00
table_properties_collectors Fix compile warning in compact_on_deletion_collector in some environment 2015-08-03 20:53:15 -07:00
transactions Return MergeInProgress when fetching from transactions or WBWI with overwrite_key 2015-09-30 11:45:32 -07:00
ttl Skip unsupported tests in ROCKSDB_LITE 2015-07-20 11:24:54 -07:00
write_batch_with_index Return MergeInProgress when fetching from transactions or WBWI with overwrite_key 2015-09-30 11:45:32 -07:00
merge_operators.h Add appropriate LICENSE and Copyright message. 2013-10-16 17:48:41 -07:00