summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-02-13 16:48:35 +0100
committerJeremy Allison <jra@samba.org>2014-02-14 15:55:46 -0800
commitcde8e290c9195cbc7a2388455df9e76a1f36135f (patch)
tree5ba28ee33ff3139a33bbcafc9d9561281e92194d /python
parentadb2cd1eee69550fa58d8cb11441b7174dccae5b (diff)
downloadsamba-cde8e290c9195cbc7a2388455df9e76a1f36135f.tar.gz
samba-cde8e290c9195cbc7a2388455df9e76a1f36135f.tar.xz
samba-cde8e290c9195cbc7a2388455df9e76a1f36135f.zip
tdb: simplify tdb_delete_hash() a bit
Make the lock/unlock bracket more obvious by extracting locking (and finding) from the special cases to the top of the function. This also lets us take lock and find the record outside the special case branches (use dead records or not). There is a small semantic change implied: In the dead records case, the record to delete is looked up before the current dead records are potentially purged. Hence, if the record to delete is not found, the dead records are also not purge. This does not make a big difference though, because purging is only delayed until directly befor the next record to delete is in fact found. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions