txnkv: fix a bug that commitTSUpperBoundCheck err not handled (#564)

Signed-off-by: tiancaiamao <tiancaiamao@gmail.com>

Co-authored-by: Yilin Chen <sticnarf@gmail.com>
This commit is contained in:
tiancaiamao 2022-08-10 16:41:20 +08:00 committed by GitHub
parent 2ed2113d10
commit 516cfcdecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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
}
}