Skip to content

Commit

Permalink
db: fix db path not removed from the open db environments map.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Jul 21, 2021
1 parent 4cae8dc commit 565abcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wallet/db.cpp
Expand Up @@ -692,8 +692,10 @@ void CDBEnv::Flush(bool fShutdown)
if (mapFileUseCount.empty()) {
dbenv->log_archive(&listp, DB_ARCH_REMOVE);
Close();
if (!fMockDb)
if (!fMockDb) {
fs::remove_all(fs::path(strPath) / "database");
}
g_dbenvs.erase(strPath);
}
}
}
Expand Down

0 comments on commit 565abcd

Please sign in to comment.