From efc68d8bf6d5acc009285e8f34b30a3a5b252884 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 20 Jan 2007 00:48:31 +0000 Subject: r20919: add a function cluster_tdb_tmp_open() which can be used in a cluster environment for subsystems that have not yet been converted to use ctdb to get a shared temporary tdb (This used to be commit 0ed91384497aed6817b2220c31344bfcd45fd033) --- source4/cluster/cluster.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/cluster/cluster.c') diff --git a/source4/cluster/cluster.c b/source4/cluster/cluster.c index 0bd4649376..16de01de07 100644 --- a/source4/cluster/cluster.c +++ b/source4/cluster/cluster.c @@ -66,3 +66,13 @@ const char *cluster_id_string(TALLOC_CTX *mem_ctx, struct server_id id) cluster_init(); return ops->cluster_id_string(ops, mem_ctx, id); } + + +/* + open a temporary tdb in a cluster friendly manner +*/ +struct tdb_wrap *cluster_tdb_tmp_open(TALLOC_CTX *mem_ctx, const char *dbname, int flags) +{ + cluster_init(); + return ops->cluster_tdb_tmp_open(ops, mem_ctx, dbname, flags); +} -- cgit