We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7b164 commit fa73493Copy full SHA for fa73493
src/wallet/bdb.cpp
@@ -623,8 +623,8 @@ bool BerkeleyDatabase::PeriodicFlush()
623
if (!lockDb) return false;
624
625
// Don't flush if any databases are in use
626
- for (auto it = env->mapFileUseCount.begin() ; it != env->mapFileUseCount.end(); it++) {
627
- if ((*it).second > 0) return false;
+ for (const auto& use_count : env->mapFileUseCount) {
+ if (use_count.second > 0) return false;
628
}
629
630
// Don't flush if there haven't been any batch writes for this database.
0 commit comments