summaryrefslogtreecommitdiff
path: root/source3/tdb/tdb.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-05-28 13:29:06 +0000
committerAndrew Tridgell <tridge@samba.org>2001-05-28 13:29:06 +0000
commitc0561ff58efa9efd0389718dc1e0fe82068b486e (patch)
tree79c2c30bdf0c2343ea2515c840c1aaa4b29d36dc /source3/tdb/tdb.h
parent22242c5038008171631c2625b2fd8b6d4b991078 (diff)
downloadsamba-c0561ff58efa9efd0389718dc1e0fe82068b486e.tar.gz
samba-c0561ff58efa9efd0389718dc1e0fe82068b486e.tar.bz2
samba-c0561ff58efa9efd0389718dc1e0fe82068b486e.zip
try to make the tailer code much more robust. When a record
can't be merged don't fail the operation, instead just add it to the free list anyway added logging to tdb (This used to be commit dda086fdf92fded016afc785f7965a375faae5aa)
Diffstat (limited to 'source3/tdb/tdb.h')
-rw-r--r--source3/tdb/tdb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index f09c6453b5..cc37825e78 100644
--- a/source3/tdb/tdb.h
+++ b/source3/tdb/tdb.h
@@ -94,12 +94,14 @@ typedef struct tdb_context {
struct tdb_context *next; /* all tdbs to avoid multiple opens */
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 */
} TDB_CONTEXT;
typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *);
TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags,
int open_flags, mode_t mode);
+void tdb_logging_function(TDB_CONTEXT *tdb, void (*fn)(TDB_CONTEXT *, int , const char *, ...));
enum TDB_ERROR tdb_error(TDB_CONTEXT *tdb);
const char *tdb_errorstr(TDB_CONTEXT *tdb);
TDB_DATA tdb_fetch(TDB_CONTEXT *tdb, TDB_DATA key);