summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-01 00:41:47 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-01 00:41:47 +0000
commit99fbf5c4bc870119a12e9b6467beb6a8b8650cc0 (patch)
tree3d62f00287252c9af4b13db36c2ed683c7fbe197 /source3/locking
parent05cb3464f972d336dcb82ca332bf9b2617646070 (diff)
downloadsamba-99fbf5c4bc870119a12e9b6467beb6a8b8650cc0.tar.gz
samba-99fbf5c4bc870119a12e9b6467beb6a8b8650cc0.tar.bz2
samba-99fbf5c4bc870119a12e9b6467beb6a8b8650cc0.zip
added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags.
TDB_INTERNAL replaces the old method of passing a null filename (This used to be commit 8ec815920d46f205b9f3fff82397c731753c3a10)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/posix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index 7b4075d5d8..d6eaad89c1 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -1088,14 +1088,14 @@ BOOL posix_locking_init(void)
return True;
if (!posix_lock_tdb)
- posix_lock_tdb = tdb_open(NULL, 0, TDB_CLEAR_IF_FIRST,
- O_RDWR|O_CREAT, 0644);
+ posix_lock_tdb = tdb_open(NULL, 0, TDB_INTERNAL,
+ O_RDWR|O_CREAT, 0644);
if (!posix_lock_tdb) {
DEBUG(0,("Failed to open POSIX byte range locking database.\n"));
return False;
}
if (!posix_pending_close_tdb)
- posix_pending_close_tdb = tdb_open(NULL, 0, TDB_CLEAR_IF_FIRST,
+ posix_pending_close_tdb = tdb_open(NULL, 0, TDB_INTERNAL,
O_RDWR|O_CREAT, 0644);
if (!posix_pending_close_tdb) {
DEBUG(0,("Failed to open POSIX pending close database.\n"));