From 72c4074c65b7a525b001b9787d8b922538898a89 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Sep 2011 08:13:28 +0930 Subject: tdb_compat: support tdb_reopen/tdb_reopen_all for TDB2 This matters with the clear-if-first support: we need to re-establish those locks at this point. Signed-off-by: Rusty Russell --- lib/tdb_compat/tdb_compat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/tdb_compat/tdb_compat.h') diff --git a/lib/tdb_compat/tdb_compat.h b/lib/tdb_compat/tdb_compat.h index 16d1f48c7d..1f7e8a9c63 100644 --- a/lib/tdb_compat/tdb_compat.h +++ b/lib/tdb_compat/tdb_compat.h @@ -76,9 +76,9 @@ int64_t tdb_traverse_read_(struct tdb_context *tdb, /* This typedef doesn't exist in TDB2. */ typedef struct tdb_context TDB_CONTEXT; -/* We don't need these any more. */ -#define tdb_reopen_all(flag) 0 -#define tdb_reopen(tdb) 0 +/* We only need these for the CLEAR_IF_FIRST lock. */ +int tdb_reopen(struct tdb_context *tdb); +int tdb_reopen_all(int parent_longlived); /* These no longer exist in tdb2. */ #define TDB_CLEAR_IF_FIRST 1048576 -- cgit