03b08ba9a9
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 |
||
---|---|---|
.. | ||
backupable_db.h | ||
checkpoint.h | ||
convenience.h | ||
db_ttl.h | ||
document_db.h | ||
flashcache.h | ||
geo_db.h | ||
info_log_finder.h | ||
json_document.h | ||
leveldb_options.h | ||
optimistic_transaction_db.h | ||
spatial_db.h | ||
stackable_db.h | ||
table_properties_collectors.h | ||
transaction_db_mutex.h | ||
transaction_db.h | ||
transaction.h | ||
utility_db.h | ||
write_batch_with_index.h |