rocksdb/utilities/transactions
Yi Wu d1b74b0c82 WritePrepared Txn: Compaction/Flush
Summary:
Update Compaction/Flush to support WritePreparedTxnDB: Add SnapshotChecker which is a proxy to query WritePreparedTxnDB::IsInSnapshot. Pass SnapshotChecker to DBImpl on WritePreparedTxnDB open. CompactionIterator use it to check if a key has been committed and if it is visible to a snapshot. In CompactionIterator:
* check if key has been committed. If not, output uncommitted keys AS-IS.
* use SnapshotChecker to check if key is visible to a snapshot when in need.
* do not output key with seq = 0 if the key is not committed.
Closes https://github.com/facebook/rocksdb/pull/2926

Differential Revision: D5902907

Pulled By: yiwu-arbug

fbshipit-source-id: 945e037fdf0aa652dc5ba0ad879461040baa0320
2017-10-06 10:41:53 -07:00
..
optimistic_transaction_db_impl.cc Refactor PessimisticTransaction 2017-08-07 16:12:29 -07:00
optimistic_transaction_db_impl.h Change RocksDB License 2017-07-15 16:11:23 -07:00
optimistic_transaction_test.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
optimistic_transaction.cc Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
optimistic_transaction.h Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
pessimistic_transaction_db.cc WritePrepared Txn: Compaction/Flush 2017-10-06 10:41:53 -07:00
pessimistic_transaction_db.h WritePrepared Txn: Compaction/Flush 2017-10-06 10:41:53 -07:00
pessimistic_transaction.cc WritePrepared Txn: Rollback 2017-10-02 19:59:27 -07:00
pessimistic_transaction.h WritePrepared Txn: Rollback 2017-10-02 19:59:27 -07:00
snapshot_checker.cc WritePrepared Txn: Compaction/Flush 2017-10-06 10:41:53 -07:00
transaction_base.cc Add TransactionDB::SingleDelete() 2017-09-27 10:27:26 -07:00
transaction_base.h Add TransactionDB::SingleDelete() 2017-09-27 10:27:26 -07:00
transaction_db_mutex_impl.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_db_mutex_impl.h Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_lock_mgr.cc Added mechanism to track deadlock chain 2017-08-17 18:56:21 -07:00
transaction_lock_mgr.h Added mechanism to track deadlock chain 2017-08-17 18:56:21 -07:00
transaction_test.cc WritePrepared Txn: Recovery 2017-09-28 16:56:45 -07:00
transaction_test.h WritePrepared Txn: Recovery 2017-09-28 16:56:45 -07:00
transaction_util.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_util.h Change RocksDB License 2017-07-15 16:11:23 -07:00
write_prepared_transaction_test.cc WritePrepared Txn: Compaction/Flush 2017-10-06 10:41:53 -07:00
write_prepared_txn.cc WritePrepared Txn: duplicate keys 2017-10-05 07:41:02 -07:00
write_prepared_txn.h WritePrepared Txn: Rollback 2017-10-02 19:59:27 -07:00