diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2013-10-30 12:09:22 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2013-10-30 12:10:08 +0530 |
commit | bf84081c352933f0c8b5f28cc6deb927f05b8835 (patch) | |
tree | 660284425ff07ea59c235c97470800293cb03c55 | |
parent | 555e53ae623aefef01f66b9303d35054580e5781 (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.c | 2 |
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 33e48fb5f..d03546757 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 " |