summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2013-10-30 12:09:22 +0530
committershishir gowda <sgowda@redhat.com>2013-11-15 14:45:13 +0530
commit05988c1e68e90d89b976ed787c6d89fb9edc3f76 (patch)
tree4a558e7dd834d76921d645573099118d2b6bf8dd
parent944e5529078cff3fd0ecbc30f037eddcc9bb63ae (diff)
mgmt/glusterd: get the xlator object before accessing it
Change-Id: I3404106a7e4fa7d32b1d5824e079040d2ed8d76b Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index 3c8942f..d39f641 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -552,6 +552,8 @@ glusterd_snapshot_create_prevalidate (dict_t *dict, char **op_errstr,
xlator_t *this = NULL;
int ret = -1;
+ this = THIS;
+
ret = dict_get_int64 (dict, "volcount", &volume_count);
if (ret) {
gf_log (this->name, GF_LOG_ERROR, "failed to "