From: Peter van Dijk Date: Fri, 15 Nov 2019 12:01:24 +0000 (+0100) Subject: pdnsutil add/replace record: do not end transaction before we are done with it X-Git-Tag: auth-4.3.0-alpha1~38^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83aab6110f2ffc29795a99c380fa57d0e17ab26d;p=thirdparty%2Fpdns.git pdnsutil add/replace record: do not end transaction before we are done with it --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index d1385e44b5..152c7a70a4 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1293,11 +1293,11 @@ int addOrReplaceRecord(bool addOrReplace, const vector& cmds) { di.backend->replaceRRSet(di.id, name, rr.qtype, newrrs); // need to be explicit to bypass the ueberbackend cache! di.backend->lookup(rr.qtype, name, di.id); - di.backend->commitTransaction(); cout<<"New rrset:"<get(rr)) { cout<commitTransaction(); return EXIT_SUCCESS; }