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.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.c')
-rw-r--r-- | source3/lib/dbwrap/dbwrap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c index 82b1c54ac4..21d46ea895 100644 --- a/source3/lib/dbwrap/dbwrap.c +++ b/source3/lib/dbwrap/dbwrap.c @@ -161,6 +161,7 @@ static struct db_record *dbwrap_fetch_locked_internal( return NULL; } (void)talloc_steal(rec, lock_order); + rec->db = db; TALLOC_FREE(frame); return rec; } @@ -183,6 +184,11 @@ struct db_record *dbwrap_try_fetch_locked(struct db_context *db, ? db->try_fetch_locked : db->fetch_locked); } +struct db_context *dbwrap_record_get_db(struct db_record *rec) +{ + return rec->db; +} + struct dbwrap_fetch_state { TALLOC_CTX *mem_ctx; TDB_DATA data; |