diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 15:07:44 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 07:35:17 +0200 |
commit | 945473aac0abffd8509bbeef3ed5a32737b7df51 (patch) | |
tree | 1a01de9fd747aade6fbcc3ae00545f3be7bbc415 /lib/dbwrap/dbwrap_file.c | |
parent | e92cb556fdb5faee71f614475aaade846dcd0aed (diff) | |
download | samba-945473aac0abffd8509bbeef3ed5a32737b7df51.tar.gz samba-945473aac0abffd8509bbeef3ed5a32737b7df51.tar.bz2 samba-945473aac0abffd8509bbeef3ed5a32737b7df51.zip |
dbwrap: dbwrap_hash_size().
Implemented for ntdb and tdb; falls back to 0 for others.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/dbwrap/dbwrap_file.c')
-rw-r--r-- | lib/dbwrap/dbwrap_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap_file.c b/lib/dbwrap/dbwrap_file.c index 4499021c57..54ed320864 100644 --- a/lib/dbwrap/dbwrap_file.c +++ b/lib/dbwrap/dbwrap_file.c @@ -373,6 +373,7 @@ struct db_context *db_open_file(TALLOC_CTX *mem_ctx, result->traverse_read = db_file_traverse; result->persistent = ((tdb_flags & TDB_CLEAR_IF_FIRST) == 0); result->name = name; + result->hash_size = 0; ctx->locked_record = NULL; if (!(ctx->dirname = talloc_strdup(ctx, name))) { |