Skip to content

Commit

Permalink
add 2pc commit log for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored and XuHuaiyu committed Oct 29, 2018
1 parent 8213bff commit 1b7b3f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions store/tikv/2pc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 1b7b3f1

Please sign in to comment.