revision-id: 09018ffe081f913be6c1580335d5476ba6c1b0a9 (v5.8-1030-g09018ffe0) parent(s): cc3ead4e33a8637e51c72ecb91256d52285979f5 author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2019-04-07 22:57:39 +0300 message: Code cleanup --- utilities/transactions/transaction_lock_mgr.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utilities/transactions/transaction_lock_mgr.h b/utilities/transactions/transaction_lock_mgr.h index c45ebae3f..5e9ee851c 100644 --- a/utilities/transactions/transaction_lock_mgr.h +++ b/utilities/transactions/transaction_lock_mgr.h @@ -55,9 +55,9 @@ struct TrackedTrxInfo { class Slice; class PessimisticTransactionDB; -/* - psergey: this should be -*/ +// +// Base class for Point and Range-based lock manager. +// class BaseLockMgr { public: virtual void AddColumnFamily(uint32_t column_family_id) = 0; @@ -71,7 +71,7 @@ class BaseLockMgr { Env* env) = 0; virtual void UnLock(PessimisticTransaction* txn, uint32_t column_family_id, - const std::string& key, Env* env)=0; + const std::string& key, Env* env) = 0; // Resize the deadlock info buffer virtual void Resize(uint32_t)=0; @@ -83,6 +83,7 @@ class BaseLockMgr { }; +// Point lock manager class TransactionLockMgr : public BaseLockMgr { public: TransactionLockMgr(TransactionDB* txn_db, size_t default_num_stripes,