rocksdb/utilities/transactions
agiardullo 20d1e547d1 Common base class for transactions
Summary:
As I keep adding new features to transactions, I keep creating more duplicate code.  This diff cleans this up by creating a base implementation class for Transaction and OptimisticTransaction to inherit from.

The code in TransactionBase.h/.cc is all just copied from elsewhere.  The only entertaining part of this class worth looking at is the virtual TryLock method which allows OptimisticTransactions and Transactions to share the same common code for Put/Get/etc.

The rest of this diff is mostly red and easy on the eyes.

Test Plan: No functionality change.  existing tests pass.

Reviewers: sdong, jkedgar, rven, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D45135
2015-08-24 19:09:43 -07:00
..
optimistic_transaction_db_impl.cc Pessimistic Transactions 2015-08-11 17:52:23 -07:00
optimistic_transaction_db_impl.h Pessimistic Transactions 2015-08-11 17:52:23 -07:00
optimistic_transaction_impl.cc Common base class for transactions 2015-08-24 19:09:43 -07:00
optimistic_transaction_impl.h Common base class for transactions 2015-08-24 19:09:43 -07:00
optimistic_transaction_test.cc Have Transactions use WriteBatch::RollbackToSavePoint 2015-08-11 17:53:30 -07:00
transaction_base.cc Common base class for transactions 2015-08-24 19:09:43 -07:00
transaction_base.h Common base class for transactions 2015-08-24 19:09:43 -07:00
transaction_db_impl.cc Pessimistic Transactions 2015-08-11 17:52:23 -07:00
transaction_db_impl.h Pessimistic Transactions 2015-08-11 17:52:23 -07:00
transaction_impl.cc Common base class for transactions 2015-08-24 19:09:43 -07:00
transaction_impl.h Common base class for transactions 2015-08-24 19:09:43 -07:00
transaction_lock_mgr.cc Transaction error statuses 2015-08-11 17:52:56 -07:00
transaction_lock_mgr.h Pessimistic Transactions 2015-08-11 17:52:23 -07:00
transaction_test.cc Have Transactions use WriteBatch::RollbackToSavePoint 2015-08-11 17:53:30 -07:00
transaction_util.cc Have Transactions use WriteBatch::RollbackToSavePoint 2015-08-11 17:53:30 -07:00
transaction_util.h Have Transactions use WriteBatch::RollbackToSavePoint 2015-08-11 17:53:30 -07:00