diff options
author | Michael Adam <obnox@samba.org> | 2011-08-17 08:35:21 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-10-11 14:17:55 +0200 |
commit | c3868b74889ccce800557a64d2a5ae6a8891a8ee (patch) | |
tree | 3ee5fe633dc069c0739202718c9642df13f72096 /source3/lib/dbwrap/dbwrap_util.c | |
parent | 7a72c84ee74cb91fd9e98b1edc74e6b3c2ba1c36 (diff) | |
download | samba-c3868b74889ccce800557a64d2a5ae6a8891a8ee.tar.gz samba-c3868b74889ccce800557a64d2a5ae6a8891a8ee.tar.bz2 samba-c3868b74889ccce800557a64d2a5ae6a8891a8ee.zip |
s3:dbwrap: move dbwrap_fetch() back to dbwrap.c, the core of the dbwrap subsystem
Diffstat (limited to 'source3/lib/dbwrap/dbwrap_util.c')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_util.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/lib/dbwrap/dbwrap_util.c b/source3/lib/dbwrap/dbwrap_util.c index effcf40c6b..a950d51404 100644 --- a/source3/lib/dbwrap/dbwrap_util.c +++ b/source3/lib/dbwrap/dbwrap_util.c @@ -487,18 +487,6 @@ NTSTATUS dbwrap_store(struct db_context *db, TDB_DATA key, return status; } -TDB_DATA dbwrap_fetch(struct db_context *db, TALLOC_CTX *mem_ctx, - TDB_DATA key) -{ - TDB_DATA result; - - if (db->fetch(db, mem_ctx, key, &result) != 0) { - return make_tdb_data(NULL, 0); - } - - return result; -} - NTSTATUS dbwrap_delete_bystring(struct db_context *db, const char *key) { return dbwrap_delete(db, string_term_tdb_data(key)); |