From 5c65850c99829668ac199a49a0760443db74b581 Mon Sep 17 00:00:00 2001 From: Kotresh H R Date: Fri, 2 May 2014 13:09:03 +0530 Subject: geo-rep/glusterd: Pause and Resume feature for geo-replication This patch introduces pause and resume cli command for geo-replication. Signed-off-by: Kotresh H R Change-Id: I4f5e58e9175fe85077d56088473252391fb57de7 BUG: 1093602 Signed-off-by: Kotresh H R Reviewed-on: http://review.gluster.org/7643 Tested-by: Gluster Build System Reviewed-by: Atin Mukherjee Reviewed-by: Avra Sengupta Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- cli/src/cli-rpc-ops.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cli/src/cli-rpc-ops.c') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index f174e27e46d..bdde185cca5 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -4514,6 +4514,20 @@ gf_cli_gsync_set_cbk (struct rpc_req *req, struct iovec *iov, master, slave); break; + case GF_GSYNC_OPTION_TYPE_PAUSE: + case GF_GSYNC_OPTION_TYPE_RESUME: + if (dict_get_str (dict, "master", &master) != 0) + master = "???"; + if (dict_get_str (dict, "slave", &slave) != 0) + slave = "???"; + + cli_out ("%s " GEOREP " session between %s & %s" + " has been successful", + type == GF_GSYNC_OPTION_TYPE_PAUSE ? + "Pausing" : "Resuming", + master, slave); + break; + case GF_GSYNC_OPTION_TYPE_CONFIG: ret = gf_cli_gsync_config_command (dict); break; -- cgit