From 92325cc7bf553326c28c1590c44561e35996c3fd Mon Sep 17 00:00:00 2001 From: Kartik Bhat Date: Mon, 4 Nov 2024 13:47:12 -0500 Subject: [PATCH] Set Earliest Version After SS Migration (#1920) Set earliest version after migration --- tools/migration/ss/migrator.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/migration/ss/migrator.go b/tools/migration/ss/migrator.go index e050d27ecd..829b7014a9 100644 --- a/tools/migration/ss/migrator.go +++ b/tools/migration/ss/migrator.go @@ -67,7 +67,12 @@ func (m *Migrator) Migrate(version int64, homeDir string) error { } } - // Set latest version in the database + // Set earliest and latest version in the database + err = m.stateStore.SetEarliestVersion(1) + if err != nil { + return err + } + return m.stateStore.SetLatestVersion(version) } @@ -93,6 +98,7 @@ func (m *Migrator) Verify(version int64) error { } if !bytes.Equal(val, value) { verifyErr = fmt.Errorf("verification error: value doesn't match for key %s. Expected %s, got %s", string(key), string(value), string(val)) + return true } count++ if count%1000000 == 0 {