diff options
author | Volker Lendecke <vl@samba.org> | 2011-12-08 13:51:19 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-12-08 15:03:43 +0100 |
commit | b6d5dfc16db83790e833397ee35ea28711b8cec8 (patch) | |
tree | 02097095fd7b0d87d82f2db0d2a7ccdaea386d61 | |
parent | 883419a50b9c0c6e0b5644f7f1147ddf24627458 (diff) | |
download | samba-b6d5dfc16db83790e833397ee35ea28711b8cec8.tar.gz samba-b6d5dfc16db83790e833397ee35ea28711b8cec8.tar.bz2 samba-b6d5dfc16db83790e833397ee35ea28711b8cec8.zip |
s3-dbwrap: use wrappers where appropriate
-rw-r--r-- | source3/lib/dbwrap/dbwrap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c index 7d96926905..adda8e6060 100644 --- a/source3/lib/dbwrap/dbwrap.c +++ b/source3/lib/dbwrap/dbwrap.c @@ -33,7 +33,7 @@ NTSTATUS dbwrap_fallback_fetch(struct db_context *db, TALLOC_CTX *mem_ctx, { struct db_record *rec; - rec = db->fetch_locked(db, mem_ctx, key); + rec = dbwrap_fetch_locked(db, mem_ctx, key); if (rec == NULL) { return NT_STATUS_UNSUCCESSFUL; } @@ -68,7 +68,7 @@ int dbwrap_fallback_parse_record(struct db_context *db, TDB_DATA key, int res; NTSTATUS status; - status = db->fetch(db, talloc_tos(), key, &data); + status = dbwrap_fetch(db, talloc_tos(), key, &data); if (!NT_STATUS_IS_OK(status)) { return -1; } @@ -81,7 +81,7 @@ int dbwrap_fallback_parse_record(struct db_context *db, TDB_DATA key, static int delete_record(struct db_record *rec, void *data) { - NTSTATUS status = rec->delete_rec(rec); + NTSTATUS status = dbwrap_record_delete(rec); return NT_STATUS_IS_OK(status) ? 0 : -1; } @@ -154,12 +154,12 @@ NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key, struct db_record *rec; NTSTATUS status; - rec = db->fetch_locked(db, talloc_tos(), key); + rec = dbwrap_fetch_locked(db, talloc_tos(), key); if (rec == NULL) { return NT_STATUS_NO_MEMORY; } - status = rec->store(rec, data, flags); + status = dbwrap_record_store(rec, data, flags); TALLOC_FREE(rec); return status; } @@ -169,11 +169,11 @@ NTSTATUS dbwrap_delete(struct db_context *db, TDB_DATA key) struct db_record *rec; NTSTATUS status; - rec = db->fetch_locked(db, talloc_tos(), key); + rec = dbwrap_fetch_locked(db, talloc_tos(), key); if (rec == NULL) { return NT_STATUS_NO_MEMORY; } - status = rec->delete_rec(rec); + status = dbwrap_record_delete(rec); TALLOC_FREE(rec); return status; } |