diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -60,7 +60,7 @@ CCriticalSection cs_db; //!< Map from directory name to open db environment. -std::map g_dbenvs; +std::map g_dbenvs GUARDED_BY(cs_db); } // namespace bool WalletDatabaseFileId::operator==(const WalletDatabaseFileId &rhs) const {