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:
@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user