|
|
@ -604,11 +604,11 @@ bool CDB::PeriodicFlush(std::string strFile) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Don't do this if any databases are in use
|
|
|
|
// Don't do this if any databases are in use
|
|
|
|
int nRefCount = 0; |
|
|
|
int nRefCount = 0; |
|
|
|
std::map<std::string, int>::iterator mi = bitdb.mapFileUseCount.begin(); |
|
|
|
std::map<std::string, int>::iterator mit = bitdb.mapFileUseCount.begin(); |
|
|
|
while (mi != bitdb.mapFileUseCount.end()) |
|
|
|
while (mit != bitdb.mapFileUseCount.end()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
nRefCount += (*mi).second; |
|
|
|
nRefCount += (*mit).second; |
|
|
|
mi++; |
|
|
|
mit++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (nRefCount == 0) |
|
|
|
if (nRefCount == 0) |
|
|
|