From f6eb187fdab6b8088bb065e418fe604c4eba7751 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Jun 2012 15:07:44 +0930 Subject: dbwrap: dbwrap_fetch_locked_timeout(). Implemented for ntdb and tdb; falls back to the non-timeout variant for others. Signed-off-by: Rusty Russell --- lib/dbwrap/dbwrap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/dbwrap/dbwrap.h') diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h index 23a43da019..0b19396b98 100644 --- a/lib/dbwrap/dbwrap.h +++ b/lib/dbwrap/dbwrap.h @@ -43,6 +43,11 @@ struct db_record *dbwrap_fetch_locked(struct db_context *db, struct db_record *dbwrap_try_fetch_locked(struct db_context *db, TALLOC_CTX *mem_ctx, TDB_DATA key); +struct db_record *dbwrap_fetch_locked_timeout(struct db_context *db, + TALLOC_CTX *mem_ctx, + TDB_DATA key, + unsigned int timeout); + struct db_context *dbwrap_record_get_db(struct db_record *rec); void dbwrap_set_stored_callback( struct db_context *db, -- cgit