s3:gencache: fix logic in stabilization when deleting a record from stable cache
authorMichael Adam <obnox@samba.org>
Thu, 26 Jun 2014 14:37:17 +0000 (16:37 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 26 Nov 2014 15:43:04 +0000 (16:43 +0100)
commit202ee81e869f4b51e1f904ef6ac3fb0030edfede
tree4a00a578cd25a79138cdabca1a2373dda4a4fa99
parent42b2e5ca8c9b85e6fce71529bef5d6b3ba4f4a38
s3:gencache: fix logic in stabilization when deleting a record from stable cache

Set state->written = true in the delete case
if and only if the record has really been deleted.

This does currently not seem to lead to an unneeded
write to the DB, since failure to delete the record
will cause the traverse and hence the transaction
to cancel. But I think this is clearer.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/lib/gencache.c