summaryrefslogtreecommitdiff
path: root/lib/tdb_compat/tdb_compat.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 08:13:28 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 08:13:28 +0930
commit72c4074c65b7a525b001b9787d8b922538898a89 (patch)
treea0b1ab0361bfbe642858b6d9a180d1f8db209efc /lib/tdb_compat/tdb_compat.h
parent26ce47ecc09537d3ee6dff205f3dd564a74e6301 (diff)
downloadsamba-72c4074c65b7a525b001b9787d8b922538898a89.tar.gz
samba-72c4074c65b7a525b001b9787d8b922538898a89.tar.bz2
samba-72c4074c65b7a525b001b9787d8b922538898a89.zip
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 <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb_compat/tdb_compat.h')
-rw-r--r--lib/tdb_compat/tdb_compat.h6
1 files changed, 3 insertions, 3 deletions
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