Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/bdb.cpp
Show First 20 Lines • Show All 430 Lines • ▼ Show 20 Lines | if (fCreate) { | ||||
fReadOnly = fTmp; | fReadOnly = fTmp; | ||||
} | } | ||||
} | } | ||||
database.AddRef(); | database.AddRef(); | ||||
strFile = strFilename; | strFile = strFilename; | ||||
} | } | ||||
} | } | ||||
void BerkeleyDatabase::Open(const char *mode) { | |||||
throw std::logic_error("BerkeleyDatabase does not implement Open. " | |||||
"This function should not be called."); | |||||
} | |||||
void BerkeleyBatch::Flush() { | void BerkeleyBatch::Flush() { | ||||
if (activeTxn) { | if (activeTxn) { | ||||
return; | return; | ||||
} | } | ||||
// Flush database activity from memory pool to disk log | // Flush database activity from memory pool to disk log | ||||
unsigned int nMinutes = 0; | unsigned int nMinutes = 0; | ||||
if (fReadOnly) { | if (fReadOnly) { | ||||
▲ Show 20 Lines • Show All 490 Lines • Show Last 20 Lines |