summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2012-12-18 16:36:16 +0530
committerAnand Avati <avati@redhat.com>2012-12-18 14:18:31 -0800
commit116c1ce428238b56d48f80f78aea8e6b303bd89c (patch)
tree4dffb3960bd53a1e9d5be48d83c65a968c838f4f /xlators
parent00cdd4134a44098f39cf9caea2177573c985a4af (diff)
glusterd: Fix initialisation of this
Change-Id: I77f9b153d23ca5de1cb098cde5951e56f04d3a1c BUG: 873549 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/4324 Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-ops.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index cecf2719..9e5cae44 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -1267,6 +1267,8 @@ glusterd_handle_set_volume (rpcsvc_request_t *req)
char err_str[2048] = {0,};
xlator_t *this = NULL;
+ this = THIS;
+
GF_ASSERT (req);
ret = xdr_to_generic (req->msg[0], &cli_req, (xdrproc_t)xdr_gf_cli_req);
@@ -1325,6 +1327,8 @@ glusterd_handle_set_volume (rpcsvc_request_t *req)
gf_log (this->name, GF_LOG_ERROR, "%s", err_str);
goto out;
}
+ gf_log (this->name, GF_LOG_DEBUG, "Received volume set request for "
+ "volume %s", volname);
ret = glusterd_op_begin (req, GD_OP_SET_VOLUME, dict,
err_str, sizeof (err_str));
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
index 4b6fdc21..6ef50342 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
@@ -537,6 +537,8 @@ glusterd_handle_cli_statedump_volume (rpcsvc_request_t *req)
char err_str[2048] = {0,};
xlator_t *this = NULL;
+ this = THIS;
+
GF_ASSERT (req);
ret = -1;