From 0635f8b98f3aa7bf47802ab958643f24069b4da5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 3 Dec 2009 00:25:16 +0100 Subject: [PATCH] make ctdb_ctrl_transaction_active public. Michael (This used to be ctdb commit e5496a83ef4a01604195b27c4b97f50d4979510e) --- ctdb/client/ctdb_client.c | 6 +++--- ctdb/include/ctdb.h | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index 2db65b50f00..0b8cd5ba2e3 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -3148,9 +3148,9 @@ int ctdb_ctrl_getcapabilities(struct ctdb_context *ctdb, struct timeval timeout, /** * check whether a transaction is active on a given db on a given node */ -static int32_t ctdb_ctrl_transaction_active(struct ctdb_context *ctdb, - uint32_t destnode, - uint32_t db_id) +int32_t ctdb_ctrl_transaction_active(struct ctdb_context *ctdb, + uint32_t destnode, + uint32_t db_id) { int32_t status; int ret; diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index db4c5ccc4bf..1d5d0d80352 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -622,6 +622,11 @@ struct ctdb_client_control_state *ctdb_ctrl_getcapabilities_send(struct ctdb_con int ctdb_ctrl_getcapabilities_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state, uint32_t *capabilities); + +int32_t ctdb_ctrl_transaction_active(struct ctdb_context *ctdb, + uint32_t destnode, + uint32_t db_id); + struct ctdb_marshall_buffer *ctdb_marshall_add(TALLOC_CTX *mem_ctx, struct ctdb_marshall_buffer *m, uint64_t db_id,