rocksdb/utilities/transactions
Maysam Yabandeh eb6425303e Update WritePrepared with the pseudo code
Summary:
Implement the main body of WritePrepared pseudo code. This includes PrepareInternal and CommitInternal, as well as AddCommitted which updates the commit map. It also provides a IsInSnapshot method that could be later called form the read path to decide if a version is in the read snapshot or it should other be skipped.

This patch lacks unit tests and does not attempt to offer an efficient implementation. The idea is that to have the API specified so that we can work on related tasks in parallel.
Closes https://github.com/facebook/rocksdb/pull/2713

Differential Revision: D5640021

Pulled By: maysamyabandeh

fbshipit-source-id: bfa7a05e8d8498811fab714ce4b9c21530514e1c
2017-08-16 16:57:47 -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 Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
pessimistic_transaction_db.h Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
pessimistic_transaction.cc Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
pessimistic_transaction.h Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
transaction_base.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
transaction_base.h Revert "comment out unused parameters" 2017-07-21 18:26: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 Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
transaction_lock_mgr.h Refactor PessimisticTransaction 2017-08-07 16:12:29 -07:00
transaction_test.cc Lower num of iterations in DeadlockCycle test 2017-07-25 11:42:26 -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_txn.cc Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00
write_prepared_txn.h Update WritePrepared with the pseudo code 2017-08-16 16:57:47 -07:00