diff options
author | Vijaikumar M <vmallika@redhat.com> | 2014-03-25 15:58:18 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-25 22:45:50 -0700 |
commit | 58dfda2a4e0ffad3a543fb47242c5cfdf0ea6bed (patch) | |
tree | 43257565469ff76d0f15277f3268a865006bb300 /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | c36c95a79c2f73f35727c6f8cba0586714663fd9 (diff) |
glusterd/snapshot : remove snap_volume variable from struct glusterd_snap_
Change-Id: I3c5eae3f199d97a2fe70599e2cdb4c357d20f20d
Signed-off-by: Vijaikumar M <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/7197
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 7f1f49461..00c551e4d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -4476,8 +4476,6 @@ glusterd_restart_bricks (glusterd_conf_t *conf) list_for_each_entry (volinfo, &conf->volumes, vol_list) { if (volinfo->status != GLUSTERD_STATUS_STARTED) continue; - if (volinfo->is_snap_volume) - continue; start_nodesvcs = _gf_true; gf_log (this->name, GF_LOG_DEBUG, "starting the volume %s", volinfo->volname); @@ -4487,15 +4485,17 @@ glusterd_restart_bricks (glusterd_conf_t *conf) } list_for_each_entry (snap, &conf->snapshots, snap_list) { - volinfo = snap->snap_volume; - if (!volinfo) { - gf_log (this->name, GF_LOG_WARNING, "volinfo " - "for the snap %s is NULL", - snap->snapname); - continue; - } - list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { - glusterd_brick_start (volinfo, brickinfo, _gf_false); + list_for_each_entry (volinfo, &snap->volumes, vol_list) { + if (volinfo->status != GLUSTERD_STATUS_STARTED) + continue; + start_nodesvcs = _gf_true; + gf_log (this->name, GF_LOG_DEBUG, "starting the snap " + "volume %s", volinfo->volname); + list_for_each_entry (brickinfo, &volinfo->bricks, + brick_list) { + glusterd_brick_start (volinfo, brickinfo, + _gf_false); + } } } |