Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/bdb.cpp
Show All 37 Lines | if (ret != 0) { | ||||
filename, ret)); | filename, ret)); | ||||
} | } | ||||
for (const auto &item : env.m_fileids) { | for (const auto &item : env.m_fileids) { | ||||
if (fileid == item.second && &fileid != &item.second) { | if (fileid == item.second && &fileid != &item.second) { | ||||
throw std::runtime_error(strprintf( | throw std::runtime_error(strprintf( | ||||
"BerkeleyBatch: Can't open database %s (duplicates fileid %s " | "BerkeleyBatch: Can't open database %s (duplicates fileid %s " | ||||
"from %s)", | "from %s)", | ||||
filename, | filename, HexStr(item.second.value), item.first)); | ||||
HexStr(std::begin(item.second.value), | |||||
std::end(item.second.value)), | |||||
item.first)); | |||||
} | } | ||||
} | } | ||||
} | } | ||||
RecursiveMutex cs_db; | RecursiveMutex 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>> | ||||
▲ Show 20 Lines • Show All 802 Lines • Show Last 20 Lines |