summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-10-15 10:56:54 +0200
committerJeremy Allison <jra@samba.org>2019-10-18 22:28:07 +0000
commit0afd655e80262ea8505a2e6d0dd9cc453fbdfd8c (patch)
tree041155c74531e571e9683d9d8c0814c940d739bf /source3/lib
parent75433f60522b935adb8c14fc6d0caa14c85281b3 (diff)
downloadsamba-0afd655e80262ea8505a2e6d0dd9cc453fbdfd8c.tar.gz
dbwrap_watch: Fix cleaning up dead watchers
"wrec->num_watchers" changes in dbwrap_watch_rec_del_watcher(). In 32d6cc84c I forgot to update the copy of that variable. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 18 22:28:07 UTC 2019 on sn-devel-184
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_watch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c
index 36e445a4fd3..c5d55a3c93d 100644
--- a/source3/lib/dbwrap/dbwrap_watch.c
+++ b/source3/lib/dbwrap/dbwrap_watch.c
@@ -433,6 +433,7 @@ static void dbwrap_watched_subrec_wakeup(
}
if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
dbwrap_watch_rec_del_watcher(wrec, i);
+ num_to_wakeup -= 1;
continue;
}