resolve: remove RRs from zones before an update
authorRoman Beranek <roman.beranek@prusa3d.com>
Fri, 30 Apr 2021 13:51:44 +0000 (15:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 May 2021 10:29:48 +0000 (12:29 +0200)
commitee3713b71ddf182852a399953968a2b39af22104
treeb589471a47779fac86aa8d3b3e5b5215a9010c62
parentc362a432af57d7fc6b58938afa82fabcb41c9e6c
resolve: remove RRs from zones before an update

During an update of RRs, the records of each DNS-SD service are
replaced with new ones. However the old RRs can only be removed from
the mDNS scopes as long as they remain accessible from the DnssdService
structures, otherwise they remain stuck there.

Therefore the removal must take place before the update.
src/resolve/resolved-manager.c