Kanagaraj M has posted comments on this change.

Change subject: engine : Query to fetch list of volumes eligible for geo 
replication
......................................................................


Patch Set 6:

(1 comment)

http://gerrit.ovirt.org/#/c/33845/6/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetEligibleVolumesForGeoRepEnablingQuery.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetEligibleVolumesForGeoRepEnablingQuery.java:

Line 24:         for (VDSGroup vdsGroup : vdsGroups) {
Line 25:             if (vdsGroup.getId() != masterVolume.getClusterId() && 
vdsGroup.getcompatibility_version().equals(getDbFacade().getVdsGroupDao().get(masterVolume.getClusterId()).getcompatibility_version())
 && vdsGroup.supportsGlusterService()) {
Line 26:                 List<GlusterVolumeEntity> volumes = 
getGlusterVolumeDao().getByClusterId(vdsGroup.getId());
Line 27:                 for (GlusterVolumeEntity volume : volumes) {
Line 28:                     if (volume.getStatus() == GlusterStatus.UP && 
volume.getAdvancedDetails().getCapacityInfo().getUsedSize().equals(0L) && 
volume.getAdvancedDetails().getCapacityInfo().getFreeSize() >= 
masterVolume.getAdvancedDetails().getCapacityInfo().getUsedSize()) {
I think the volume used size will never be 0. Pls check it.
Line 29:                         eligibleVolumeList.add(volume);
Line 30:                     }
Line 31:                 }
Line 32:             }


-- 
To view, visit http://gerrit.ovirt.org/33845
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I0fc3ecb15535181f1ca2a8780461cb89788a3f41
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <anb...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Ramesh N <rnach...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: anmolbabu <anb...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to