s3:dbwrap_watch: let dbwrap_watched_delete() call dbwrap_watched_record_storev(num_db...
authorStefan Metzmacher <metze@samba.org>
Sun, 26 Jun 2022 12:57:06 +0000 (12:57 +0000)
committerRalph Boehme <slow@samba.org>
Tue, 26 Jul 2022 13:40:34 +0000 (13:40 +0000)
commit044e018e9a243466bdbf075304a2715f36c0199a
treea5d6d220f76c63aa4eb6dacab4717c07121d1234
parentcc9c8b8e7e0e2ab8512fb443b89780a11bc966ae
s3:dbwrap_watch: let dbwrap_watched_delete() call dbwrap_watched_record_storev(num_dbufs=0)

dbwrap_watched_record_storev() will handle the high level storev and
delete, it will find out if we can remove the record as there's no value
and also no watchers to be stored.

This is no real change for now as dbwrap_watched_record_wakeup() will
always exits with wrec->watchers.count = 0, but that will change in the next
commits.

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>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/dbwrap/dbwrap_watch.c