1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-07-01 22:30:19 +02:00

dyndnsd: allow updater to see if database changed

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

View File

@ -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')