summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-04-21 12:07:28 +0200
committerVolker Lendecke <vl@samba.org>2012-04-21 13:46:00 +0200
commit13d667bbffa1bb7af7bdb1031a90883beba9ddad (patch)
tree39b258ff139cc6d774928a833d532f5172d58c7f /source3/lib
parentd26028316d69f2346cfa7f39c9678d94a58b4535 (diff)
downloadsamba-13d667bbffa1bb7af7bdb1031a90883beba9ddad.tar.gz
samba-13d667bbffa1bb7af7bdb1031a90883beba9ddad.tar.bz2
samba-13d667bbffa1bb7af7bdb1031a90883beba9ddad.zip
s3: Implement db_id for dbwrap_cache
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Apr 21 13:46:00 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_cache.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_cache.c b/source3/lib/dbwrap/dbwrap_cache.c
index d61aa89a44..28249464de 100644
--- a/source3/lib/dbwrap/dbwrap_cache.c
+++ b/source3/lib/dbwrap/dbwrap_cache.c
@@ -173,6 +173,14 @@ static int dbwrap_cache_exists(struct db_context *db, TDB_DATA key)
return dbwrap_exists(ctx->backing, key);
}
+static void dbwrap_cache_id(struct db_context *db, const uint8_t **id,
+ size_t *idlen)
+{
+ struct db_cache_ctx *ctx = talloc_get_type_abort(
+ db->private_data, struct db_cache_ctx);
+ return dbwrap_db_id(ctx->backing, id, idlen);
+}
+
struct db_context *db_open_cache(TALLOC_CTX *mem_ctx,
struct db_context *backing)
{
@@ -208,6 +216,7 @@ struct db_context *db_open_cache(TALLOC_CTX *mem_ctx,
db->transaction_cancel = dbwrap_cache_transaction_cancel;
db->parse_record = dbwrap_cache_parse_record;
db->exists = dbwrap_cache_exists;
+ db->id = dbwrap_cache_id;
db->stored_callback = NULL;
db->wipe = NULL;
db->lock_order = 0;