]> git.ipfire.org Git - thirdparty/samba.git/commit
dbwrap_watch: Don't store in-RAM caches
authorVolker Lendecke <vl@samba.org>
Mon, 18 Nov 2019 20:46:55 +0000 (21:46 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 22 Nov 2019 23:57:47 +0000 (23:57 +0000)
commit341223a00596ef1cdc63d9eb0a0b2e496bd6f0f4
treeea0775187cc8d1329adfd5feb6f0613d6be58c2a
parente5c28fec6f900dd1d8f1ee81d2cd008a93207a1a
dbwrap_watch: Don't store in-RAM caches

The history of this file is a mess with lots of bugs. Most of the bugs
I believe are based on the cache of database contents we maintain in
struct dbwrap_watch_rec. This patch removes that cache and does all
modifications directly in the backend database.

This means we have to mess with the database format in a few more
places, but I think the format is simple enough that this does not
really hurt.

I tried for a few days to split this up into small pieces that are
easier to understand, but every time I separated out individual chunks
I found difficult to track down bugs that are all resolved in the
final code presented here. It's more lines of code, but I hope it's more
robust.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/dbwrap/dbwrap_watch.c