From 516cfcdecce865d90ec05dd1cc1de060c35438dc Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Wed, 10 Aug 2022 16:41:20 +0800 Subject: [PATCH] txnkv: fix a bug that commitTSUpperBoundCheck err not handled (#564) Signed-off-by: tiancaiamao Co-authored-by: Yilin Chen --- txnkv/transaction/2pc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/txnkv/transaction/2pc.go b/txnkv/transaction/2pc.go index 6b234022..ee588b8a 100644 --- a/txnkv/transaction/2pc.go +++ b/txnkv/transaction/2pc.go @@ -1547,6 +1547,7 @@ func (c *twoPhaseCommitter) execute(ctx context.Context) (err error) { if !c.txn.commitTSUpperBoundCheck(commitTS) { err = errors.Errorf("session %d check commit ts upper bound fail, txnStartTS: %d, comm: %d", c.sessionID, c.startTS, c.commitTS) + return err } }