Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
syncer: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Mar 9, 2020
1 parent 642050c commit 1ddb439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ func (s *Syncer) handleQueryEvent(ev *replication.QueryEvent, ec eventContext) e
shardLockResolving.WithLabelValues(s.cfg.Name).Set(1) // block and wait DDL lock to be synced
s.tctx.L().Info("putted shard DDL info", zap.Stringer("info", shardInfo))

shardOp, err2 := s.pessimist.GetOperation(ec.tctx.Ctx, shardInfo, rev)
shardOp, err2 := s.pessimist.GetOperation(ec.tctx.Ctx, shardInfo, rev+1)
shardLockResolving.WithLabelValues(s.cfg.Name).Set(0)
if err2 != nil {
return err2
Expand Down

0 comments on commit 1ddb439

Please sign in to comment.