Skip to content

Commit

Permalink
cherry pick #18802 to release-4.0 (#18813)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot committed Jul 28, 2020
1 parent 575bc85 commit 49f88e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/tikv/2pc.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ func (actionPrewrite) handleSingleBatch(c *twoPhaseCommitter, bo *Backoffer, bat
prewriteResp := resp.Resp.(*pb.PrewriteResponse)
keyErrs := prewriteResp.GetErrors()
if len(keyErrs) == 0 {
if bytes.Equal(c.primary(), batch.mutations.keys[0]) {
if batch.isPrimary {
// After writing the primary key, if the size of the transaction is large than 32M,
// start the ttlManager. The ttlManager will be closed in tikvTxn.Commit().
if c.txnSize > 32*1024*1024 {
Expand Down

0 comments on commit 49f88e3

Please sign in to comment.