summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2013-02-08 17:22:22 +0530
committerAnand Avati <avati@redhat.com>2013-02-08 12:03:42 -0800
commit83a0868a16ace8d9a86490f189f35f1f332cdebd (patch)
treeb66016fb31a85972904181c1c4ea89e826a5a6bc /xlators/mgmt/glusterd
parentbbf7345adccec7cbcb0a14deca0d499987c5829d (diff)
glusterd: Made volume-statedump use synctask framework.
Change-Id: I230ecbd8978725070b5910ead4249f21038224a6 BUG: 852147 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/4494 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-ops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
index 60f671efd..e34ebd7f4 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
@@ -554,8 +554,7 @@ glusterd_handle_cli_statedump_volume (rpcsvc_request_t *req)
gf_log (this->name, GF_LOG_INFO, "Received statedump request for "
"volume %s with options %s", volname, options);
- ret = glusterd_op_begin (req, GD_OP_STATEDUMP_VOLUME, dict,
- err_str, sizeof (err_str));
+ ret = glusterd_op_begin_synctask (req, GD_OP_STATEDUMP_VOLUME, dict);
out:
if (ret) {
@@ -566,8 +565,6 @@ out:
dict, err_str);
}
free (cli_req.dict.dict_val);
- glusterd_friend_sm ();
- glusterd_op_sm();
return ret;
}