Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Nov 24, 2021
1 parent 45b3ccd commit ccba17d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions table/tables/state_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,6 @@ func (h *stateRemoteHandle) lockForWriteOnce(ctx context.Context, tid int64, now
if _, err = h.execSQL(ctx, "update mysql.table_cache_meta set lock_type='INTEND', oldReadLease=%?, lease=%? where tid=%?", lease, ts, tid); err != nil {
return errors.Trace(err)
}
if err = h.commitTxn(ctx); err != nil {
return errors.Trace(err)
}

// Wait for lease to expire, and then retry.
waitAndRetry = waitForLeaseExpire(oldReadLease, now)
case CachedTableLockIntend, CachedTableLockWrite:
Expand Down

0 comments on commit ccba17d

Please sign in to comment.