diff options
author | Martin Schwenke <martin@meltin.net> | 2020-08-06 17:28:30 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2020-09-11 05:06:42 +0000 |
commit | 289869547383c4b243aedd0f0e2256c94abe53fb (patch) | |
tree | b918b9048aac06a3f24e6e57c8338384d545fc25 /ctdb/client | |
parent | 2efce7d4774d4af1330722f039caaaec49cc4855 (diff) | |
download | samba-289869547383c4b243aedd0f0e2256c94abe53fb.tar.gz |
ctdb-client: Drop unused synchronous functions for database pull/push
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/client')
-rw-r--r-- | ctdb/client/client_control_sync.c | 58 | ||||
-rw-r--r-- | ctdb/client/client_sync.h | 9 |
2 files changed, 0 insertions, 67 deletions
diff --git a/ctdb/client/client_control_sync.c b/ctdb/client/client_control_sync.c index e56a2b2f18d..b9a25ce2b2c 100644 --- a/ctdb/client/client_control_sync.c +++ b/ctdb/client/client_control_sync.c @@ -268,64 +268,6 @@ int ctdb_ctrl_get_dbmap(TALLOC_CTX *mem_ctx, struct tevent_context *ev, return 0; } -int ctdb_ctrl_pull_db(TALLOC_CTX *mem_ctx, struct tevent_context *ev, - struct ctdb_client_context *client, int destnode, - struct timeval timeout, struct ctdb_pulldb *pulldb, - struct ctdb_rec_buffer **recbuf) -{ - struct ctdb_req_control request; - struct ctdb_reply_control *reply; - int ret; - - ctdb_req_control_pull_db(&request, pulldb); - ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout, - &request, &reply); - if (ret != 0) { - DEBUG(DEBUG_ERR, - ("Control PULL_DB failed to node %u, ret=%d\n", - destnode, ret)); - return ret; - } - - ret = ctdb_reply_control_pull_db(reply, mem_ctx, recbuf); - if (ret != 0) { - DEBUG(DEBUG_ERR, - ("Control PULL_DB failed, ret=%d\n", ret)); - return ret; - } - - return 0; -} - -int ctdb_ctrl_push_db(TALLOC_CTX *mem_ctx, struct tevent_context *ev, - struct ctdb_client_context *client, int destnode, - struct timeval timeout, struct ctdb_rec_buffer *recbuf) -{ - struct ctdb_req_control request; - struct ctdb_reply_control *reply; - int ret; - - ctdb_req_control_push_db(&request, recbuf); - ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout, - &request, &reply); - if (ret != 0) { - DEBUG(DEBUG_ERR, - ("Control PUSH_DB failed to node %u, ret=%d\n", - destnode, ret)); - return ret; - } - - ret = ctdb_reply_control_push_db(reply); - if (ret != 0) { - DEBUG(DEBUG_ERR, - ("Control PUSH_DB failed, ret=%d\n", ret)); - return ret; - } - - return 0; -} - - int ctdb_ctrl_get_recmode(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct ctdb_client_context *client, int destnode, struct timeval timeout, diff --git a/ctdb/client/client_sync.h b/ctdb/client/client_sync.h index b29e669fba4..dc8b67395e3 100644 --- a/ctdb/client/client_sync.h +++ b/ctdb/client/client_sync.h @@ -65,15 +65,6 @@ int ctdb_ctrl_get_dbmap(TALLOC_CTX *mem_ctx, struct tevent_context *ev, int destnode, struct timeval timeout, struct ctdb_dbid_map **dbmap); -int ctdb_ctrl_pull_db(TALLOC_CTX *mem_ctx, struct tevent_context *ev, - struct ctdb_client_context *client, int destnode, - struct timeval timeout, struct ctdb_pulldb *pulldb, - struct ctdb_rec_buffer **recbuf); - -int ctdb_ctrl_push_db(TALLOC_CTX *mem_ctx, struct tevent_context *ev, - struct ctdb_client_context *client, int destnode, - struct timeval timeout, struct ctdb_rec_buffer *recbuf); - int ctdb_ctrl_get_recmode(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct ctdb_client_context *client, int destnode, struct timeval timeout, |