rocksdb/include/rocksdb/utilities
agiardullo 03b08ba9a9 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:14:42 -07:00
..
backupable_db.h add missing header required for std::function 2015-09-18 22:18:40 +02:00
checkpoint.h Skip unsupported tests in ROCKSDB_LITE 2015-07-20 11:24:54 -07:00
convenience.h Abandon ROCKSDB_WARNING 2015-07-22 12:56:56 -07:00
db_ttl.h Move include/utilities/*.h to include/rocksdb/utilities/*.h 2014-07-23 10:21:38 -04:00
document_db.h Move include/utilities/*.h to include/rocksdb/utilities/*.h 2014-07-23 10:21:38 -04:00
flashcache.h Adding another NewFlashcacheAwareEnv function to support pre-opened fd 2015-04-06 16:50:36 -07:00
geo_db.h Move include/utilities/*.h to include/rocksdb/utilities/*.h 2014-07-23 10:21:38 -04:00
info_log_finder.h Add function 'GetInfoLogList()' 2015-08-05 16:16:46 -07:00
json_document.h Return fbson 2015-02-27 00:04:14 +03:00
leveldb_options.h Fix mac compile 2014-11-21 09:42:45 -05:00
optimistic_transaction_db.h Pessimistic Transactions 2015-08-11 17:52:23 -07:00
spatial_db.h "make format" against last 10 commits 2015-07-13 13:50:18 -07:00
stackable_db.h Add experimental DB::AddFile() to plug sst files into empty DB 2015-09-23 12:42:43 -07:00
table_properties_collectors.h Fix a typo and update HISTORY.md for NewCompactOnDeletionCollectorFactory(). 2015-08-04 13:51:05 -07:00
transaction_db_mutex.h TransactionDB Custom Locking API 2015-09-08 17:03:57 -07:00
transaction_db.h TransactionDB Custom Locking API 2015-09-08 17:03:57 -07:00
transaction.h Return MergeInProgress when fetching from transactions or WBWI with overwrite_key 2015-09-30 11:14:42 -07:00
utility_db.h Ensure Windows build w/o port/port.h in public headers 2015-07-16 12:10:16 -07:00
write_batch_with_index.h Return MergeInProgress when fetching from transactions or WBWI with overwrite_key 2015-09-30 11:14:42 -07:00