summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-06-04 05:13:59 +0000
committerAndrew Tridgell <tridge@samba.org>2001-06-04 05:13:59 +0000
commit05fc3e578c895f632b351969d09cd00feb7599c7 (patch)
tree8dca3af624421a6f3ea664e14e5666da37aefb46 /source3/locking
parentf903ec893ad7aff832193bcd7035be3ee9c65c22 (diff)
downloadsamba-05fc3e578c895f632b351969d09cd00feb7599c7.tar.gz
samba-05fc3e578c895f632b351969d09cd00feb7599c7.tar.bz2
samba-05fc3e578c895f632b351969d09cd00feb7599c7.zip
use LDSHFLAGS not -shared in several places
(This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c2
-rw-r--r--source3/locking/locking.c2
-rw-r--r--source3/locking/posix.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index 552ea617aa..8f73327830 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -176,7 +176,7 @@ void brl_init(int read_only)
if (tdb)
return;
- tdb = tdb_open(lock_path("brlock.tdb"), 0, TDB_CLEAR_IF_FIRST,
+ tdb = tdb_open_log(lock_path("brlock.tdb"), 0, TDB_CLEAR_IF_FIRST,
read_only?O_RDONLY:(O_RDWR|O_CREAT), 0644);
if (!tdb) {
DEBUG(0,("Failed to open byte range locking database\n"));
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index c2d3106a67..c77a86cbf4 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -282,7 +282,7 @@ BOOL locking_init(int read_only)
if (tdb)
return True;
- tdb = tdb_open(lock_path("locking.tdb"),
+ tdb = tdb_open_log(lock_path("locking.tdb"),
0, TDB_CLEAR_IF_FIRST,
read_only?O_RDONLY:O_RDWR|O_CREAT,
0644);
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index 75fc6272b5..9cfe25ed9d 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -1350,14 +1350,14 @@ BOOL posix_locking_init(int read_only)
return True;
if (!posix_lock_tdb)
- posix_lock_tdb = tdb_open(NULL, 0, TDB_INTERNAL,
+ posix_lock_tdb = tdb_open_log(NULL, 0, TDB_INTERNAL,
read_only?O_RDONLY:(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_INTERNAL,
+ posix_pending_close_tdb = tdb_open_log(NULL, 0, TDB_INTERNAL,
read_only?O_RDONLY:(O_RDWR|O_CREAT), 0644);
if (!posix_pending_close_tdb) {
DEBUG(0,("Failed to open POSIX pending close database.\n"));