Skip to content

Commit 56921f9

Browse files
wallet: Add Clang thread safety annotations for variables guarded by cs_db
1 parent 2199705 commit 56921f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void CheckUniqueFileid(const BerkeleyEnvironment& env, const std::string& filena
5353
}
5454

5555
CCriticalSection cs_db;
56-
std::map<std::string, BerkeleyEnvironment> g_dbenvs; //!< Map from directory name to open db environment.
56+
std::map<std::string, BerkeleyEnvironment> g_dbenvs GUARDED_BY(cs_db); //!< Map from directory name to open db environment.
5757
} // namespace
5858

5959
BerkeleyEnvironment* GetWalletEnv(const fs::path& wallet_path, std::string& database_filename)

0 commit comments

Comments
 (0)