You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ddl/syncer/syncer.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -310,13 +310,15 @@ func (s *schemaVersionSyncer) OwnerCheckAllVersions(ctx context.Context, jobID i
310
310
ifvariable.EnableMDL.Load() {
311
311
for_, kv:=rangeresp.Kvs {
312
312
key:=string(kv.Key)
313
+
tidbIDInResp:=key[strings.LastIndex(key, "/")+1:]
313
314
ver, err:=strconv.Atoi(string(kv.Value))
314
315
iferr!=nil {
315
316
logutil.BgLogger().Info("[ddl] syncer check all versions, convert value to int failed, continue checking.", zap.String("ddl", string(kv.Key)), zap.String("value", string(kv.Value)), zap.Error(err))
316
317
succ=false
317
318
break
318
319
}
319
-
ifint64(ver) <latestVer {
320
+
// We need to check if the tidb ID is in the updatedMap, in case that deleting etcd is failed, and tidb server is down.
0 commit comments