1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-10 21:49:28 +03:00

r15104: Implement Samba4's tdb_name().

Volker
(This used to be commit d52002c1c9)
This commit is contained in:
Volker Lendecke
2006-04-17 13:06:57 +00:00
committed by Gerald (Jerry) Carter
parent 76e581b983
commit 30832e95dc
2 changed files with 9 additions and 1 deletions

View File

@ -172,7 +172,7 @@ static uint32 _reg_perfcount_multi_sz_from_tdb(TDB_CONTEXT *tdb,
/* If a key isn't there, just bypass it -- this really shouldn't
happen unless someone's mucking around with the tdb */
DEBUG(3, ("_reg_perfcount_multi_sz_from_tdb: failed to find key [%s] in [%s].\n",
temp, tdb->name));
temp, tdb_name(tdb)));
return buffer_size;
}
/* First encode the name_index */

View File

@ -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.