From 1b7b3f1e001a5f71f5a98b5d7707beb079e2b5e3 Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Sun, 28 Oct 2018 23:10:00 +0800 Subject: [PATCH] add 2pc commit log for debugging --- store/tikv/2pc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/tikv/2pc.go b/store/tikv/2pc.go index 347490b64ebf1..ad0356bb32c31 100644 --- a/store/tikv/2pc.go +++ b/store/tikv/2pc.go @@ -531,10 +531,12 @@ func (c *twoPhaseCommitter) cleanupSingleBatch(bo *Backoffer, batch batchKeys) e } func (c *twoPhaseCommitter) prewriteKeys(bo *Backoffer, keys [][]byte) error { + log.Info("conn:%d 2pc prewrite, start ts = %d", c.connID, c.startTS) return c.doActionOnKeys(bo, actionPrewrite, keys) } func (c *twoPhaseCommitter) commitKeys(bo *Backoffer, keys [][]byte) error { + log.Info("conn:%d 2pc commit, commit ts = %d", c.connID, c.commitTS) return c.doActionOnKeys(bo, actionCommit, keys) }