diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-01-20 00:48:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:43:52 -0500 |
commit | efc68d8bf6d5acc009285e8f34b30a3a5b252884 (patch) | |
tree | d84cca0cf2946c054f3f19ee8b50b77713952af4 /source4/cluster/cluster.c | |
parent | d1b61b09aa542d64bf43abb3ad04611f46b57376 (diff) | |
download | samba-efc68d8bf6d5acc009285e8f34b30a3a5b252884.tar.gz samba-efc68d8bf6d5acc009285e8f34b30a3a5b252884.tar.bz2 samba-efc68d8bf6d5acc009285e8f34b30a3a5b252884.zip |
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)
Diffstat (limited to 'source4/cluster/cluster.c')
-rw-r--r-- | source4/cluster/cluster.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); +} |