dyndnsd: allow updater to see if database changed

This commit is contained in:
cn committed 2020-07-20 11:56:23 +02:00
1 parent 0cec44893d
commit 0c4c38cc6b
3 files changed
+15 -3

No files matched your search

@@ -14,6 +14,9 @@ module Dyndnsd
# @param db [Dyndnsd::Database]
# @return [void]
def update(db)
# do not regenerate zone file (assumed to be persistent) if DB did not change
return if !db.changed?
Helper.span('updater_update') do |span|
span.set_tag('dyndnsd.updater.name', self.class.name&.split('::')&.last || 'None')