summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-30 22:21:31 +0000
committerJeremy Allison <jra@samba.org>2001-07-30 22:21:31 +0000
commit996719cce26700c68ff0e456e6a25d20085d091f (patch)
tree38e4e80d4fb2cd14d7d311b7ba1bc69be643b2c5 /source3/smbd
parentd17d9bee6f3d23f31f6b408e7b80630d4602c9c2 (diff)
downloadsamba-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/smbd')
-rw-r--r--source3/smbd/connection.c2
-rw-r--r--source3/smbd/session.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index 07ded5f4a3..df58697917 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -119,7 +119,7 @@ BOOL claim_connection(connection_struct *conn,char *name,int max_connections,BOO
BOOL ret = True;
if (!tdb) {
- tdb = tdb_open_log(lock_path("connections.tdb"), 0, TDB_CLEAR_IF_FIRST,
+ tdb = tdb_open_log(lock_path("connections.tdb"), 0, TDB_CLEAR_IF_FIRST|USE_TDB_MMAP_FLAG,
O_RDWR | O_CREAT, 0644);
}
if (!tdb)
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index 8f6907c537..7616689fe0 100644
--- a/source3/smbd/session.c
+++ b/source3/smbd/session.c
@@ -62,7 +62,7 @@ BOOL session_claim(uint16 vuid)
}
if (!tdb) {
- tdb = tdb_open_log(lock_path("sessionid.tdb"), 0, TDB_CLEAR_IF_FIRST,
+ tdb = tdb_open_log(lock_path("sessionid.tdb"), 0, TDB_CLEAR_IF_FIRST|USE_TDB_MMAP_FLAG,
O_RDWR | O_CREAT, 0644);
if (!tdb) {
DEBUG(1,("session_claim: failed to open sessionid tdb\n"));