summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2017-03-21 15:03:24 +1100
committerMartin Schwenke <martins@samba.org>2017-06-26 15:47:24 +0200
commit4760fff3ae12673fe6db98a9e1c7f883ffacb75e (patch)
tree1fc65b206b76ecc5312b0199e7503e3de0db84bf /ctdb
parent38d14fcf29d0f22ca8ea782c6515c1f358b0c3cf (diff)
downloadsamba-4760fff3ae12673fe6db98a9e1c7f883ffacb75e.tar.gz
ctdb-client: Do not pass tdb open flags to db attach api
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/client/client_control_sync.c10
-rw-r--r--ctdb/client/client_sync.h6
2 files changed, 6 insertions, 10 deletions
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,