From e92cb556fdb5faee71f614475aaade846dcd0aed Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Jun 2012 15:07:44 +0930 Subject: dbwrap: dbwrap_name(). Useful for debug messages: particularly once we start switching between .tdb and .ntdb files. Signed-off-by: Rusty Russell --- lib/dbwrap/dbwrap_file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dbwrap/dbwrap_file.c') diff --git a/lib/dbwrap/dbwrap_file.c b/lib/dbwrap/dbwrap_file.c index e0fd4ebc73..4499021c57 100644 --- a/lib/dbwrap/dbwrap_file.c +++ b/lib/dbwrap/dbwrap_file.c @@ -372,6 +372,7 @@ struct db_context *db_open_file(TALLOC_CTX *mem_ctx, result->traverse = db_file_traverse; result->traverse_read = db_file_traverse; result->persistent = ((tdb_flags & TDB_CLEAR_IF_FIRST) == 0); + result->name = name; ctx->locked_record = NULL; if (!(ctx->dirname = talloc_strdup(ctx, name))) { -- cgit