1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2022-08-28 13:32:59 +02:00 committed by Jeremy Allison
parent d7f4294692
commit c1ec831049

View 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;
}