summaryrefslogtreecommitdiffstats
path: root/source/locking/locking.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-02-12 05:24:02 +0000
committerGerald Carter <jerry@samba.org>2004-02-12 05:24:02 +0000
commit6e22c5da929b6d9a4e32dc704c83112b2ad8fcfd (patch)
tree90240c996e9e0450b72e8b4a31bf448763337c4e /source/locking/locking.c
parentdaee8d7feee4a08d6c204e2de3f346b6d10640e6 (diff)
downloadsamba-6e22c5da929b6d9a4e32dc704c83112b2ad8fcfd.tar.gz
samba-6e22c5da929b6d9a4e32dc704c83112b2ad8fcfd.tar.xz
samba-6e22c5da929b6d9a4e32dc704c83112b2ad8fcfd.zip
merge from old APP_HEAD
* remove corrupt tdb and shutdown (only for printing tdbs, connections, sessionid & locking) * decrement smbd counter in connections.tdb in smb_panic() * various Makefile hack to get things to link 'max smbd processes' looks like it might be broken. The counter KEY is not being set. Will look into that tomorrow.
Diffstat (limited to 'source/locking/locking.c')
-rw-r--r--source/locking/locking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c
index c3abd638182..42036cc70cf 100644
--- a/source/locking/locking.c
+++ b/source/locking/locking.c
@@ -283,10 +283,10 @@ BOOL locking_init(int read_only)
if (tdb)
return True;
- tdb = tdb_open_log(lock_path("locking.tdb"),
+ tdb = tdb_open_ex(lock_path("locking.tdb"),
0, TDB_DEFAULT|(read_only?0x0:TDB_CLEAR_IF_FIRST),
read_only?O_RDONLY:O_RDWR|O_CREAT,
- 0644);
+ 0644, smbd_tdb_log);
if (!tdb) {
DEBUG(0,("ERROR: Failed to initialise locking database\n"));