mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +00:00
Migrate journals as well
This commit is contained in:
parent
5cb70a2f42
commit
2aea867cee
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user