From 07b5c1a239052d670218324f88373562150a96e0 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Tue, 14 Nov 2023 17:30:54 +0800 Subject: [PATCH] Problem: memiavl fail to upgrade (backport #1205) --- memiavl/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memiavl/db.go b/memiavl/db.go index 38f3093a3b..8530ecf706 100644 --- a/memiavl/db.go +++ b/memiavl/db.go @@ -1011,7 +1011,7 @@ func isSnapshotName(name string) bool { // it's needed for upgrade module to check store upgrades, // it returns 0 if db don't exists or is empty. func GetLatestVersion(dir string) (int64, error) { - metadata, err := readMetadata(dir) + metadata, err := readMetadata(currentPath(dir)) if err != nil { if os.IsNotExist(err) { return 0, nil