diff options
Diffstat (limited to 'lib/dbwrap/dbwrap.c')
-rw-r--r-- | lib/dbwrap/dbwrap.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/dbwrap/dbwrap.c b/lib/dbwrap/dbwrap.c index f03514dc35..44e20bce5f 100644 --- a/lib/dbwrap/dbwrap.c +++ b/lib/dbwrap/dbwrap.c @@ -256,33 +256,6 @@ struct db_record *dbwrap_try_fetch_locked(struct db_context *db, ? db->try_fetch_locked : db->fetch_locked); } -struct db_record *dbwrap_fetch_locked_timeout(struct db_context *db, - TALLOC_CTX *mem_ctx, - TDB_DATA key, - unsigned int timeout) -{ - struct db_record *rec; - struct dbwrap_lock_order_state *lock_order; - TALLOC_CTX *frame = talloc_stackframe(); - - lock_order = dbwrap_check_lock_order(db, frame); - if (lock_order == NULL) { - TALLOC_FREE(frame); - return NULL; - } - rec = db->fetch_locked_timeout - ? db->fetch_locked_timeout(db, mem_ctx, key, timeout) - : db->fetch_locked(db, mem_ctx, key); - if (rec == NULL) { - TALLOC_FREE(frame); - return NULL; - } - (void)talloc_steal(rec, lock_order); - rec->db = db; - TALLOC_FREE(frame); - return rec; -} - struct db_context *dbwrap_record_get_db(struct db_record *rec) { return rec->db; |