diff options
author | Volker Lendecke <vl@samba.org> | 2012-01-02 13:30:51 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-20 13:42:40 +0200 |
commit | 8e5b11bc143e8532aeed504e47b881ce53411ce3 (patch) | |
tree | 8677fa01565fdaabd899862926fd5d38f1d2f002 /source3/lib/dbwrap/dbwrap_tdb.c | |
parent | 0f20ffbcbd41895dd073051539411f7194ae8224 (diff) | |
download | samba-8e5b11bc143e8532aeed504e47b881ce53411ce3.tar.gz samba-8e5b11bc143e8532aeed504e47b881ce53411ce3.tar.bz2 samba-8e5b11bc143e8532aeed504e47b881ce53411ce3.zip |
s3-dbwrap: Add "db_context" to "db_record"
Diffstat (limited to 'source3/lib/dbwrap/dbwrap_tdb.c')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_tdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_tdb.c b/source3/lib/dbwrap/dbwrap_tdb.c index e1b26e4e09..9450be0e65 100644 --- a/source3/lib/dbwrap/dbwrap_tdb.c +++ b/source3/lib/dbwrap/dbwrap_tdb.c @@ -276,6 +276,7 @@ static int db_tdb_traverse_func(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, rec.store = db_tdb_store; rec.delete_rec = db_tdb_delete; rec.private_data = ctx->db->private_data; + rec.db = ctx->db; return ctx->f(&rec, ctx->private_data); } @@ -316,6 +317,7 @@ static int db_tdb_traverse_read_func(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA d rec.store = db_tdb_store_deny; rec.delete_rec = db_tdb_delete_deny; rec.private_data = ctx->db->private_data; + rec.db = ctx->db; return ctx->f(&rec, ctx->private_data); } |