summaryrefslogtreecommitdiff
path: root/source/tdb/tdbutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tdb/tdbutil.c')
-rw-r--r--source/tdb/tdbutil.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/tdb/tdbutil.c b/source/tdb/tdbutil.c
index f1809229f8c..fc45fa93606 100644
--- a/source/tdb/tdbutil.c
+++ b/source/tdb/tdbutil.c
@@ -805,6 +805,14 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags,
return tdb;
}
+/****************************************************************************
+ return the name of the current tdb file useful for external logging
+ functions
+****************************************************************************/
+const char *tdb_name(struct tdb_context *tdb)
+{
+ return tdb->name;
+}
/****************************************************************************
Allow tdb_delete to be used as a tdb_traversal_fn.