From: Stefan Metzmacher Date: Sun, 28 Aug 2022 11:32:59 +0000 (+0200) Subject: s3:dbwrap_watch: let dbwrap_watched_watch_skip_alerting() also clear the selected... X-Git-Tag: talloc-2.4.0~859 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1ec8310496ef7355b950bcf1e4b2d882740aa94;p=thirdparty%2Fsamba.git s3:dbwrap_watch: let dbwrap_watched_watch_skip_alerting() also clear the selected watcher If a watcher was already selected for a wakeup notification reset it... BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index e5b11aa124e..515922a761e 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -1034,6 +1034,7 @@ void dbwrap_watched_watch_skip_alerting(struct db_record *rec) { struct db_watched_record *wrec = db_record_get_watched_record(rec); + wrec->wakeup.watcher = (struct dbwrap_watcher) { .instance = 0, }; wrec->watchers.alerted = true; }