From 0e396b2f7ae59eb88e2791167e93ba099b715a99 Mon Sep 17 00:00:00 2001 From: Bin Zhang Date: Tue, 26 Nov 2024 09:04:36 -0800 Subject: [PATCH] comment Signed-off-by: Bin Zhang --- txnkv/transaction/txn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/txnkv/transaction/txn.go b/txnkv/transaction/txn.go index 2c910f3e98..aeebceb1c9 100644 --- a/txnkv/transaction/txn.go +++ b/txnkv/transaction/txn.go @@ -1704,6 +1704,7 @@ func (txn *KVTxn) StartTS() uint64 { return txn.startTS } +// CommitTS returns the commit timestamp of the already committed transaction, or zero if it's not committed yet. func (txn *KVTxn) CommitTS() uint64 { return txn.commitTS }