summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common/tdb_private.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-24 03:43:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:49 -0500
commit5860aef9cd53da572bef1b86a62a3a5e86da84b0 (patch)
treeceef07b8fdd5763db9077d157351f5bc58a3d761 /source4/lib/tdb/common/tdb_private.h
parent5a770bf72061e6b57f88e28fc585ff3c015ace49 (diff)
downloadsamba-5860aef9cd53da572bef1b86a62a3a5e86da84b0.tar.gz
samba-5860aef9cd53da572bef1b86a62a3a5e86da84b0.tar.bz2
samba-5860aef9cd53da572bef1b86a62a3a5e86da84b0.zip
r10465: separate out a read_only db from a read-only traversal to ensure we
don't end up doing a mmap read only (This used to be commit 294ccfd46a0c4e1af9365d028acdabec03c41ad3)
Diffstat (limited to 'source4/lib/tdb/common/tdb_private.h')
-rw-r--r--source4/lib/tdb/common/tdb_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h
index 9eeaea4cb0..2b2d6de411 100644
--- a/source4/lib/tdb/common/tdb_private.h
+++ b/source4/lib/tdb/common/tdb_private.h
@@ -183,6 +183,7 @@ struct tdb_context {
int fd; /* open file descriptor for the database */
tdb_len_t map_size; /* how much space has been mapped */
int read_only; /* opened read-only */
+ int traverse_read; /* read-only traversal */
struct tdb_lock_type *locked; /* array of chain locks */
enum TDB_ERROR ecode; /* error code for last tdb error */
struct tdb_header header; /* a cached copy of the header */