rocksdb/utilities/transactions
Maysam Yabandeh 60beefd6e0 WritePrepared Txn: Advance seq one per batch
Summary:
By default the seq number in DB is increased once per written key. WritePrepared txns requires the seq to be increased once per the entire batch so that the seq would be used as the prepare timestamp by which the transaction is identified. Also we need to increase seq for the commit marker since it would give a unique id to the commit timestamp of transactions.

Two unit tests are added to verify our understanding of how the seq should be increased. The recovery path requires much more work and is left to another patch.
Closes https://github.com/facebook/rocksdb/pull/2885

Differential Revision: D5837843

Pulled By: maysamyabandeh

fbshipit-source-id: a08960b93d727e1cf438c254d0c2636fb133cc1c
2017-09-18 14:45:08 -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: Advance seq one per batch 2017-09-18 14:45:08 -07:00
pessimistic_transaction_db.h WritePrepared Txn: Lock-free CommitMap 2017-09-13 12:12:11 -07:00
pessimistic_transaction.cc WritePrepared Txn: Lock-free CommitMap 2017-09-13 12:12:11 -07:00
pessimistic_transaction.h WritePrepared Txn: Lock-free CommitMap 2017-09-13 12:12:11 -07:00
transaction_base.cc Use PinnableSlice in Transactions 2017-08-23 10:11:45 -07:00
transaction_base.h Use PinnableSlice in Transactions 2017-08-23 10:11:45 -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: Advance seq one per batch 2017-09-18 14:45:08 -07:00
transaction_test.h Add more unit test to write_prepared txns 2017-08-31 09:41:27 -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: Advance seq one per batch 2017-09-18 14:45:08 -07:00
write_prepared_txn.cc WritePrepared Txn: Advance seq one per batch 2017-09-18 14:45:08 -07:00
write_prepared_txn.h WritePrepared Txn: Lock-free CommitMap 2017-09-13 12:12:11 -07:00