Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | for (const auto &item : env.m_fileids) { | ||||
std::end(item.second.value)), | std::end(item.second.value)), | ||||
item.first)); | item.first)); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
CCriticalSection cs_db; | CCriticalSection cs_db; | ||||
//!< Map from directory name to db environment. | //! Map from directory name to db environment. | ||||
std::map<std::string, std::weak_ptr<BerkeleyEnvironment>> | std::map<std::string, std::weak_ptr<BerkeleyEnvironment>> | ||||
g_dbenvs GUARDED_BY(cs_db); | 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; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 908 Lines • Show Last 20 Lines |