summaryrefslogtreecommitdiff
path: root/source3/tdb/tdb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-19 05:43:15 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-19 05:43:15 +0000
commit2bc9ef38466826ab43b747def4cf3344187ebe1f (patch)
tree56c30364dd2cbccc7f59622e5463254cf4c676e4 /source3/tdb/tdb.h
parentd9c1da5b0cfc1dad173b4fc8b48d74c8007e8111 (diff)
downloadsamba-2bc9ef38466826ab43b747def4cf3344187ebe1f.tar.gz
samba-2bc9ef38466826ab43b747def4cf3344187ebe1f.tar.bz2
samba-2bc9ef38466826ab43b747def4cf3344187ebe1f.zip
added a hook to reopen all tdb's after the server fork
this prevents the fd seek pointer problem (This used to be commit f49518e497deeb46292456c3650769d50ec2a955)
Diffstat (limited to 'source3/tdb/tdb.h')
-rw-r--r--source3/tdb/tdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index cc37825e78..4efe263ee8 100644
--- a/source3/tdb/tdb.h
+++ b/source3/tdb/tdb.h
@@ -95,6 +95,7 @@ typedef struct tdb_context {
dev_t device; /* uniquely identifies this tdb */
ino_t inode; /* uniquely identifies this tdb */
void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...); /* logging function */
+ int open_flags; /* flags used in the open - needed by reopen */
} TDB_CONTEXT;
typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *);