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 17:46:56 +0000 (19:46 +0200)
commit8082864ebba8f2ce1e6afb08cac15daeed4dca3d
tree2d9f8a8a01ec6d02cf207b5a7e4fe2ec69a967a9
parent83c39430c06620ab208cdeeaaef9da31dd882a91
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)
(cherry picked from commit 46ee05ed1fca9c5637ec5cfbb4f71c84f94b3db6)
src/resolve/resolved-manager.c