summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-06 22:08:19 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-06 22:08:19 +0000
commit9a9ac2739bbdc993ecdfa78298bdd9c059328378 (patch)
treefb5d245f31a6bea0d31c124d4dec78ae8847ae3b /source3/utils
parenta92f02a0a05b5309644befe57119e799be08177f (diff)
downloadsamba-9a9ac2739bbdc993ecdfa78298bdd9c059328378.tar.gz
samba-9a9ac2739bbdc993ecdfa78298bdd9c059328378.tar.bz2
samba-9a9ac2739bbdc993ecdfa78298bdd9c059328378.zip
got rid of USE_TDB_MMAP_FLAG as its not needed any more
(This used to be commit c26e0d3f27a05ecc8bd2390f9aab7f9451524e47)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c2
-rw-r--r--source3/utils/status.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 377f7a148b..40892ba1c0 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -133,7 +133,7 @@ static BOOL send_message(char *dest, int msg_type, void *buf, int len, BOOL dupl
TDB_CONTEXT *tdb;
BOOL ret;
- tdb = tdb_open_log(lock_path("connections.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDWR, 0);
+ tdb = tdb_open_log(lock_path("connections.tdb"), 0, TDB_DEFAULT, O_RDWR, 0);
if (!tdb) {
fprintf(stderr,"Failed to open connections database in send_message.\n");
return False;
diff --git a/source3/utils/status.c b/source3/utils/status.c
index 77e76a34e8..27c6d9b51b 100644
--- a/source3/utils/status.c
+++ b/source3/utils/status.c
@@ -619,7 +619,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
return profile_dump();
}
- tdb = tdb_open_log(lock_path("sessionid.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDONLY, 0);
+ tdb = tdb_open_log(lock_path("sessionid.tdb"), 0, TDB_DEFAULT, O_RDONLY, 0);
if (!tdb) {
printf("sessionid.tdb not initialised\n");
}
@@ -633,7 +633,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
tdb_traverse(tdb, traverse_sessionid, NULL);
tdb_close(tdb);
- tdb = tdb_open_log(lock_path("connections.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDONLY, 0);
+ tdb = tdb_open_log(lock_path("connections.tdb"), 0, TDB_DEFAULT, O_RDONLY, 0);
if (!tdb) {
printf("connections.tdb not initialised\n");
} else if (verbose) {