From c1ec8310496ef7355b950bcf1e4b2d882740aa94 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 28 Aug 2022 13:32:59 +0200 Subject: [PATCH] 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 --- source3/lib/dbwrap/dbwrap_watch.c | 1 + 1 file changed, 1 insertion(+) 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; }