From 70f27f1b52b57011c053460b0084e366bfbf03f7 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 10 Dec 2001 05:08:22 +0000 Subject: Doc. (This used to be commit bb6c0df4bc4eb8ce789886ec17e434dc27bb34b0) --- source3/tdb/tdb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/tdb/tdb.c') diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index f78d4e2bb1..955c0b322d 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -56,6 +56,10 @@ #define TDB_DEAD(r) ((r)->magic == TDB_DEAD_MAGIC) #define TDB_BAD_MAGIC(r) ((r)->magic != TDB_MAGIC && !TDB_DEAD(r)) #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off)) + +/* NB assumes there is a local variable called "tdb" that is the + * current context, also takes doubly-parenthesized print-style + * argument. */ #define TDB_LOG(x) (tdb->log_fn?((tdb->log_fn x),0) : 0) /* lock offsets */ -- cgit