mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:dbwrap_watch: add dbwrap_watched_watch_force_alerting()
This is useful when we want to wakeup the next watcher without modifying the record. 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:
parent
3829acc474
commit
6f2ce1fd34
@ -1046,6 +1046,13 @@ void dbwrap_watched_watch_reset_alerting(struct db_record *rec)
|
||||
wrec->watchers.alerted = false;
|
||||
}
|
||||
|
||||
void dbwrap_watched_watch_force_alerting(struct db_record *rec)
|
||||
{
|
||||
struct db_watched_record *wrec = db_record_get_watched_record(rec);
|
||||
|
||||
dbwrap_watched_record_prepare_wakeup(wrec);
|
||||
}
|
||||
|
||||
struct dbwrap_watched_watch_state {
|
||||
struct db_context *db;
|
||||
TDB_DATA key;
|
||||
|
@ -31,6 +31,7 @@ uint64_t dbwrap_watched_watch_add_instance(struct db_record *rec);
|
||||
void dbwrap_watched_watch_remove_instance(struct db_record *rec, uint64_t instance);
|
||||
void dbwrap_watched_watch_skip_alerting(struct db_record *rec);
|
||||
void dbwrap_watched_watch_reset_alerting(struct db_record *rec);
|
||||
void dbwrap_watched_watch_force_alerting(struct db_record *rec);
|
||||
struct tevent_req *dbwrap_watched_watch_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
struct db_record *rec,
|
||||
|
Loading…
Reference in New Issue
Block a user