Skip to content

Commit

Permalink
Problem: memiavl fail to upgrade (backport #1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Nov 14, 2023
1 parent 66fa4a2 commit 07b5c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memiavl/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07b5c1a

Please sign in to comment.