[Commits] 73ff40dcb: RangeLocking: Make WriteUnpreparedTxn::Clear() pass all_keys_hint=true to UnLock

Sergei Petrunia psergey at askmonty.org
Sat Nov 30 18:03:43 EET 2019


revision-id: 73ff40dcbf0a46228ea02d5103d1331335622794 (v5.8-1898-g73ff40dcb)
parent(s): d09b88fb9ee1ebdb13cedf5f6b49bea268188366
author: Sergei Petrunia
committer: Sergei Petrunia
timestamp: 2019-11-30 19:03:43 +0300
message:

RangeLocking: Make WriteUnpreparedTxn::Clear() pass all_keys_hint=true to UnLock

Failure to do so would be either slow, or fail to release locks at all (when
in STO-mode)

---
 utilities/transactions/write_unprepared_txn.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utilities/transactions/write_unprepared_txn.cc b/utilities/transactions/write_unprepared_txn.cc
index d4e5abad5..cf96723f2 100644
--- a/utilities/transactions/write_unprepared_txn.cc
+++ b/utilities/transactions/write_unprepared_txn.cc
@@ -693,7 +693,7 @@ Status WriteUnpreparedTxn::RollbackInternal() {
 
 void WriteUnpreparedTxn::Clear() {
   if (!recovered_txn_) {
-    txn_db_impl_->UnLock(this, &GetTrackedKeys());
+    txn_db_impl_->UnLock(this, &GetTrackedKeys(), /*all_keys_hint=*/ true);
   }
   unprep_seqs_.clear();
   flushed_save_points_.reset(nullptr);


More information about the commits mailing list