From 4760fff3ae12673fe6db98a9e1c7f883ffacb75e Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 21 Mar 2017 15:03:24 +1100 Subject: ctdb-client: Do not pass tdb open flags to db attach api Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/client/client_control_sync.c | 10 ++++------ ctdb/client/client_sync.h | 6 ++---- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'ctdb') diff --git a/ctdb/client/client_control_sync.c b/ctdb/client/client_control_sync.c index 7e245b63333..653a3fe6f0a 100644 --- a/ctdb/client/client_control_sync.c +++ b/ctdb/client/client_control_sync.c @@ -415,14 +415,13 @@ int ctdb_ctrl_statistics_reset(TALLOC_CTX *mem_ctx, struct tevent_context *ev, int ctdb_ctrl_db_attach(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct ctdb_client_context *client, int destnode, struct timeval timeout, - const char *db_name, uint32_t tdb_flags, - uint32_t *db_id) + const char *db_name, uint32_t *db_id) { struct ctdb_req_control request; struct ctdb_reply_control *reply; int ret; - ctdb_req_control_db_attach(&request, db_name, tdb_flags); + ctdb_req_control_db_attach(&request, db_name, 0); ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout, &request, &reply); if (ret != 0) { @@ -1121,14 +1120,13 @@ int ctdb_ctrl_db_attach_persistent(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct ctdb_client_context *client, int destnode, struct timeval timeout, - const char *db_name, int tdb_flags, - uint32_t *db_id) + const char *db_name, uint32_t *db_id) { struct ctdb_req_control request; struct ctdb_reply_control *reply; int ret; - ctdb_req_control_db_attach_persistent(&request, db_name, tdb_flags); + ctdb_req_control_db_attach_persistent(&request, db_name, 0); ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout, &request, &reply); if (ret != 0) { diff --git a/ctdb/client/client_sync.h b/ctdb/client/client_sync.h index 18387eee47d..7bf58e6e2dc 100644 --- a/ctdb/client/client_sync.h +++ b/ctdb/client/client_sync.h @@ -91,8 +91,7 @@ int ctdb_ctrl_statistics_reset(TALLOC_CTX *mem_ctx, struct tevent_context *ev, int ctdb_ctrl_db_attach(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct ctdb_client_context *client, int destnode, struct timeval timeout, - const char *db_name, uint32_t tdb_flags, - uint32_t *db_id); + const char *db_name, uint32_t *db_id); int ctdb_ctrl_traverse_start(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct ctdb_client_context *client, @@ -216,8 +215,7 @@ int ctdb_ctrl_db_attach_persistent(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct ctdb_client_context *client, int destnode, struct timeval timeout, - const char *db_name, int tdb_flags, - uint32_t *db_id); + const char *db_name, uint32_t *db_id); int ctdb_ctrl_send_gratuitous_arp(TALLOC_CTX *mem_ctx, struct tevent_context *ev, -- cgit v1.2.1