diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-01 00:41:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-01 00:41:47 +0000 |
commit | 8ec815920d46f205b9f3fff82397c731753c3a10 (patch) | |
tree | ce613e42c7bbdb8c32747372209619e6b2541f24 /source/locking | |
parent | 09355fcd50e6c9c0c81e5f70ab9b7ff88aa897bf (diff) | |
download | samba-8ec815920d46f205b9f3fff82397c731753c3a10.tar.gz samba-8ec815920d46f205b9f3fff82397c731753c3a10.tar.xz samba-8ec815920d46f205b9f3fff82397c731753c3a10.zip |
added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags.
TDB_INTERNAL replaces the old method of passing a null filename
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/posix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/locking/posix.c b/source/locking/posix.c index 7b4075d5d8e..d6eaad89c14 100644 --- a/source/locking/posix.c +++ b/source/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")); |