diff options
author | Jeremy Allison <jra@samba.org> | 2001-07-30 22:21:31 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-07-30 22:21:31 +0000 |
commit | 996719cce26700c68ff0e456e6a25d20085d091f (patch) | |
tree | 38e4e80d4fb2cd14d7d311b7ba1bc69be643b2c5 /source3/locking | |
parent | d17d9bee6f3d23f31f6b408e7b80630d4602c9c2 (diff) | |
download | samba-996719cce26700c68ff0e456e6a25d20085d091f.tar.gz samba-996719cce26700c68ff0e456e6a25d20085d091f.tar.bz2 samba-996719cce26700c68ff0e456e6a25d20085d091f.zip |
Added "use mmap" for HPUX.
Jeremy.
(This used to be commit 840802f10677cb0009cb4df4c37c7d01aa5edacd)
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/brlock.c | 2 | ||||
-rw-r--r-- | source3/locking/locking.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 7f3ec6757e..1982d9982c 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_log(lock_path("brlock.tdb"), 0, TDB_CLEAR_IF_FIRST, + tdb = tdb_open_log(lock_path("brlock.tdb"), 0, TDB_CLEAR_IF_FIRST|USE_TDB_MMAP_FLAG, 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 067b1dc0dd..9b393ed6ba 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -295,7 +295,7 @@ BOOL locking_init(int read_only) return True; tdb = tdb_open_log(lock_path("locking.tdb"), - 0, TDB_CLEAR_IF_FIRST, + 0, TDB_CLEAR_IF_FIRST|USE_TDB_MMAP_FLAG, read_only?O_RDONLY:O_RDWR|O_CREAT, 0644); |