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
klog.InfoS("Executable and data versions are the same - continuing")
305
333
returnnil
306
334
}
307
335
308
-
ifexecVer.Major!=dataVer.Major {
309
-
returnfmt.Errorf("major versions are different: %d and %d", dataVer.Major, execVer.Major)
336
+
execLinear, err:=linearVersion(execVer)
337
+
iferr!=nil {
338
+
returnerr
339
+
}
340
+
dataLinear, err:=linearVersion(dataVer)
341
+
iferr!=nil {
342
+
returnerr
310
343
}
311
344
312
-
ifexecVer.Minor<dataVer.Minor {
313
-
returnfmt.Errorf("executable (%s) is older than existing data (%s): migrating data to older version is not supported", execVer.String(), dataVer.String())
345
+
ifexecLinear<dataLinear {
346
+
returnfmt.Errorf("executable (%s) is older than existing data (%s): "+
347
+
"migrating data to older version is not supported",
348
+
execVer.String(), dataVer.String())
314
349
}
315
350
316
-
ifexecVer.Minor>dataVer.Minor {
317
-
versionSkew:=execVer.Minor-dataVer.Minor
318
-
ifversionSkew<=MAX_VERSION_SKEW {
319
-
klog.Infof("Executable is newer than data by %d minor versions, continuing", versionSkew)
320
-
returnnil
321
-
} else {
322
-
returnfmt.Errorf("executable (%s) is too recent compared to existing data (%s): minor version difference is %d, maximum allowed difference is %d",
0 commit comments