diff options
author | Jeremy Allison <jra@samba.org> | 2001-09-06 23:07:20 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-09-06 23:07:20 +0000 |
commit | 1f1fcb7d61094b2c489f74a2444e3cb2168898fe (patch) | |
tree | 29ba0c1a8de169c822327d41c8180b92a619df3a /source/libsmb/unexpected.c | |
parent | 562f054b52c6725f30964ca89ff6a2fba9550cf1 (diff) | |
download | samba-1f1fcb7d61094b2c489f74a2444e3cb2168898fe.tar.gz samba-1f1fcb7d61094b2c489f74a2444e3cb2168898fe.tar.xz samba-1f1fcb7d61094b2c489f74a2444e3cb2168898fe.zip |
Ok - so Andrew was right :-) and we don't need USE_TDB_MMAP_FLAG if we
put the check in the right place.... :-).
Jeremy.
Diffstat (limited to 'source/libsmb/unexpected.c')
-rw-r--r-- | source/libsmb/unexpected.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libsmb/unexpected.c b/source/libsmb/unexpected.c index 8dfd0fa6e8a..8f115623a1c 100644 --- a/source/libsmb/unexpected.c +++ b/source/libsmb/unexpected.c @@ -50,7 +50,7 @@ void unexpected_packet(struct packet_struct *p) if (!tdbd) { tdbd = tdb_open_log(lock_path("unexpected.tdb"), 1, - TDB_CLEAR_IF_FIRST|USE_TDB_MMAP_FLAG, + TDB_CLEAR_IF_FIRST|TDB_DEFAULT, O_RDWR | O_CREAT, 0644); if (!tdbd) { DEBUG(0,("Failed to open unexpected.tdb\n")); @@ -151,7 +151,7 @@ struct packet_struct *receive_unexpected(enum packet_type packet_type, int id, { TDB_CONTEXT *tdb2; - tdb2 = tdb_open_log(lock_path("unexpected.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDONLY, 0); + tdb2 = tdb_open_log(lock_path("unexpected.tdb"), 0, TDB_DEFAULT, O_RDONLY, 0); if (!tdb2) return NULL; matched_packet = NULL; |