From ad738bc8d6fcced86dd34a87104b5d9a31f2414b Mon Sep 17 00:00:00 2001 From: Tanner Date: Wed, 13 Nov 2019 11:16:36 +0800 Subject: [PATCH] session: fix upgrade logic when bootstrap (#12827) (#13376) --- session/bootstrap.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/session/bootstrap.go b/session/bootstrap.go index 5f6c735e0b813..894c991a3de94 100644 --- a/session/bootstrap.go +++ b/session/bootstrap.go @@ -520,6 +520,7 @@ func upgrade(s Session) { upgradeToVer28(s) } + // upgradeToVer29 only need to be run when the current version is 28. if ver == version28 { upgradeToVer29(s) } @@ -533,7 +534,7 @@ func upgrade(s Session) { } if ver < version32 { - upgradeToVer29(s) + upgradeToVer32(s) } if ver < version33 {