[Commits] 0ebc41a1c: Added Comments

Sergei Petrunia psergey at askmonty.org
Mon Apr 8 15:22:11 EEST 2019


revision-id: 0ebc41a1c459263a30e2d2bc68348ed5bcdd59bd (v5.8-1032-g0ebc41a1c)
parent(s): a196a4dd46d018a4815467e979fda46126ca5fa9
author: Sergei Petrunia
committer: Sergei Petrunia
timestamp: 2019-04-08 15:22:11 +0300
message:

Added Comments

---
 utilities/transactions/transaction_util.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/utilities/transactions/transaction_util.h b/utilities/transactions/transaction_util.h
index 7377874e6..99312cec9 100644
--- a/utilities/transactions/transaction_util.h
+++ b/utilities/transactions/transaction_util.h
@@ -23,7 +23,12 @@ struct TransactionKeyMapInfo {
   // Earliest sequence number that is relevant to this transaction for this key
   SequenceNumber seq;
 
+  // Number of writes done to this key
   uint32_t num_writes;
+
+  // Number of locking reads done to the key. If both numbers of reads and
+  // writes go down to zero (happens for RollbackToSavePoint and
+  // UndoGetForUpdate) the key will be removed from tracking.
   uint32_t num_reads;
 
   bool exclusive;


More information about the commits mailing list