Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | for (const auto &item : env.m_fileids) { | ||||
item.first)); | item.first)); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
CCriticalSection cs_db; | CCriticalSection cs_db; | ||||
//!< Map from directory name to open db environment. | //!< Map from directory name to open db environment. | ||||
std::map<std::string, BerkeleyEnvironment> g_dbenvs; | std::map<std::string, BerkeleyEnvironment> g_dbenvs GUARDED_BY(cs_db); | ||||
} // namespace | } // namespace | ||||
bool WalletDatabaseFileId::operator==(const WalletDatabaseFileId &rhs) const { | bool WalletDatabaseFileId::operator==(const WalletDatabaseFileId &rhs) const { | ||||
return memcmp(value, &rhs.value, sizeof(value)) == 0; | return memcmp(value, &rhs.value, sizeof(value)) == 0; | ||||
} | } | ||||
static void SplitWalletPath(const fs::path &wallet_path, | static void SplitWalletPath(const fs::path &wallet_path, | ||||
fs::path &env_directory, | fs::path &env_directory, | ||||
▲ Show 20 Lines • Show All 879 Lines • Show Last 20 Lines |