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_private.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/dbwrap/dbwrap_private.h') diff --git a/lib/dbwrap/dbwrap_private.h b/lib/dbwrap/dbwrap_private.h index af8374dbc9..dfd365dab2 100644 --- a/lib/dbwrap/dbwrap_private.h +++ b/lib/dbwrap/dbwrap_private.h @@ -38,6 +38,10 @@ struct db_context { struct db_record *(*try_fetch_locked)(struct db_context *db, TALLOC_CTX *mem_ctx, TDB_DATA key); + struct db_record *(*fetch_locked_timeout)(struct db_context *db, + TALLOC_CTX *mem_ctx, + TDB_DATA key, + unsigned int timeout); int (*traverse)(struct db_context *db, int (*f)(struct db_record *rec, void *private_data), -- cgit