summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/locking.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index b551d8c6d6..023ec59e89 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -310,15 +310,19 @@ BOOL locking_init(int read_only)
BOOL locking_end(void)
{
+#if 0
BOOL check_self = True;
+#endif
brl_shutdown(open_read_only);
if (tdb) {
/* delete any dead locks */
+#if 0 /* Don't scan on close. */
if (!open_read_only)
tdb_traverse(tdb, delete_fn, &check_self);
+#endif
if (tdb_close(tdb) != 0)
return False;