summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-04-17 05:43:05 +0000
committerAndrew Tridgell <tridge@samba.org>2002-04-17 05:43:05 +0000
commit0e6ac42b4d6debba880190e6a1cdad3ac87dd0cc (patch)
tree025e985a5f5aba25a64e9b93338ced04016c0d28 /source3/locking
parente35ac78c49c3bd2aeb871cf1ebee43cf73477c6a (diff)
downloadsamba-0e6ac42b4d6debba880190e6a1cdad3ac87dd0cc.tar.gz
samba-0e6ac42b4d6debba880190e6a1cdad3ac87dd0cc.tar.bz2
samba-0e6ac42b4d6debba880190e6a1cdad3ac87dd0cc.zip
disabled the traversal of the brlock database at startup and
shutdown. I have just helped debug a very large Solaris server where the traversal was taking so long that the clients timed out, created a new process which in turn did a traversal! we will need to find some other way of doing a brlock.tdb cleanup (if its even needed at all) (This used to be commit 2728d131356313db0d6341b0a01d6625d13367c3)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index e7fa4022f6..abc20c8f0f 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -232,10 +232,6 @@ void brl_init(int read_only)
DEBUG(0,("Failed to open byte range locking database\n"));
return;
}
-
- /* delete any dead locks */
- if (!read_only)
- tdb_traverse(tdb, delete_fn, &check_self);
}
/****************************************************************************
@@ -249,10 +245,6 @@ void brl_shutdown(int read_only)
if (!tdb)
return;
- /* delete any dead locks */
- if (!read_only)
- tdb_traverse(tdb, delete_fn, &check_self);
-
tdb_close(tdb);
}