Skip to content

Commit

Permalink
do not update delta for lock keys
Browse files Browse the repository at this point in the history
  • Loading branch information
coocood committed Aug 5, 2020
1 parent a72f77c commit 4fc0706
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,13 +942,6 @@ func (e *SelectLockExec) Next(ctx context.Context, req *chunk.Chunk) error {
lockWaitTime = kv.LockNoWait
}

if len(e.keys) > 0 {
// This operation is only for schema validator check.
for id := range e.tblID2Handle {
e.ctx.GetSessionVars().TxnCtx.UpdateDeltaForTable(id, 0, 0, map[int64]int64{})
}
}

return doLockKeys(ctx, e.ctx, newLockCtx(e.ctx.GetSessionVars(), lockWaitTime), e.keys...)
}

Expand Down

0 comments on commit 4fc0706

Please sign in to comment.