]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:dbwrap_watch: let dbwrap_watched_watch_skip_alerting() also clear the selected...
authorStefan Metzmacher <metze@samba.org>
Sun, 28 Aug 2022 11:32:59 +0000 (13:32 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (00:34 +0000)
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/dbwrap/dbwrap_watch.c

index e5b11aa124e03a69a0152fd67a201bfbf0a1e636..515922a761e898b3ec716be4576d15ff6315ffdb 100644 (file)
@@ -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;
 }