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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 May 2021 16:24:30 +0000 (18:24 +0200)
commit46ee05ed1fca9c5637ec5cfbb4f71c84f94b3db6
tree57f4909967d8f14824490eb081828166b59f5543
parent405e86c015124baf990adfe67ddedef3f38a0850
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.

(cherry picked from commit ee3713b71ddf182852a399953968a2b39af22104)
src/resolve/resolved-manager.c