]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not clear the domain list in getAllDomains. 15238/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 28 Feb 2025 15:38:39 +0000 (16:38 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 28 Feb 2025 15:38:39 +0000 (16:38 +0100)
Doing this causes incomplete information to be returned in multi-backend
configuration.

modules/lmdbbackend/lmdbbackend.cc

index 8385bd1b0de8ed4da134c99446058f9e90b1d398..e67ceceb5fb7dde391ef77a3f2b86d4dc72dbc92 100644 (file)
@@ -1813,8 +1813,6 @@ void LMDBBackend::getAllDomainsFiltered(vector<DomainInfo>* domains, const std::
 
 void LMDBBackend::getAllDomains(vector<DomainInfo>* domains, bool /* doSerial */, bool include_disabled)
 {
-  domains->clear();
-
   getAllDomainsFiltered(domains, [this, include_disabled](DomainInfo& di) {
     if (!getSerial(di) && !include_disabled) {
       return false;