Skip to content

Commit 5c2a468

Browse files
authored
Merge pull request #16878 from miodvallat/backport-16871-to-auth-5.0.x
auth 5.0: backport "fix stupid logic error in lmdb-write-update-notification=no"
2 parents d5aeced + a9078d1 commit 5c2a468

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/lmdbbackend/lmdbbackend.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,8 +2208,8 @@ void LMDBBackend::getAllDomainsFiltered(vector<DomainInfo>* domains, const std::
22082208
}
22092209

22102210
for (auto& [k, v] : zonemap) {
2211+
consolidateDomainInfo(v);
22112212
if (allow(v)) {
2212-
consolidateDomainInfo(v);
22132213
domains->push_back(std::move(v));
22142214
}
22152215
}
@@ -2220,8 +2220,8 @@ void LMDBBackend::getAllDomainsFiltered(vector<DomainInfo>* domains, const std::
22202220
di.id = iter.getID();
22212221
di.backend = this;
22222222

2223+
consolidateDomainInfo(di);
22232224
if (allow(di)) {
2224-
consolidateDomainInfo(di);
22252225
domains->push_back(di);
22262226
}
22272227
}
@@ -3314,7 +3314,7 @@ class LMDBFactory : public BackendFactory
33143314
declare(suffix, "random-ids", "Numeric IDs inside the database are generated randomly instead of sequentially", "no");
33153315
declare(suffix, "map-size", "LMDB map size in megabytes", (sizeof(void*) == 4) ? "100" : "16000");
33163316
declare(suffix, "flag-deleted", "Flag entries on deletion instead of deleting them", "no");
3317-
declare(suffix, "write-notification-update", "Do not update domain table upon notification", "yes");
3317+
declare(suffix, "write-notification-update", "Update domain table upon notification", "yes");
33183318
declare(suffix, "lightning-stream", "Run in Lightning Stream compatible mode", "no");
33193319
}
33203320
DNSBackend* make(const string& suffix = "") override

0 commit comments

Comments
 (0)