Migrate journals as well

This commit is contained in:
Andrea Maria Piana 2020-09-25 09:31:55 +02:00
parent 5cb70a2f42
commit 2aea867cee
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
0.62.5
0.62.6

View File

@ -232,6 +232,10 @@ func (b *GethStatusBackend) ensureAppDBOpened(account multiaccounts.Account, pas
if err != nil {
return err
}
// rename journals as well, but ignore errors
_ = os.Rename(oldPath+"-shm", newPath+"-shm")
_ = os.Rename(oldPath+"-wal", newPath+"-wal")
}
b.appDB, err = appdatabase.InitializeDB(newPath, password)