Yair Zaslavsky has posted comments on this change.

Change subject: bll: stop and delete geo-rep session
......................................................................


Patch Set 8:

(3 comments)

http://gerrit.ovirt.org/#/c/33038/8/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/DeleteGeoRepSessionCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/DeleteGeoRepSessionCommand.java:

Line 26:     }
Line 27: 
Line 28:     @Override
Line 29:     protected void setActionMessageParameters() {
Line 30:         addCanDoActionMessage(VdcBllMessages.VAR__ACTION__REMOVE);
See previous comment on multiple addCanDoActionMessage
Line 31:         
addCanDoActionMessage(VdcBllMessages.VAR__TYPE__GLUSTER_GEOREP_SESSION);
Line 32:         addCanDoActionMessageVariable("volumeName", 
getGlusterVolumeName());
Line 33:         addCanDoActionMessageVariable("vdsGroup", getVdsGroupName());
Line 34:     }


Line 45:         if (getSucceeded()) {
Line 46:             getGlusterGeoRepDao().remove(getGeoRepSession().getId());
Line 47:         } else {
Line 48:             handleVdsError(AuditLogType.GEOREP_SESSION_DELETE_FAILED, 
returnValue.getVdsError().getMessage());
Line 49:             return;
why do we need this return here?
Line 50:         }
Line 51:     }
Line 52: 
Line 53:     @Override


http://gerrit.ovirt.org/#/c/33038/8/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StopGeoRepSessionCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StopGeoRepSessionCommand.java:

Line 58:             getGeoRepSession().setStatus(GeoRepSessionStatus.STOPPED);
Line 59:             getGlusterGeoRepDao().updateSession(getGeoRepSession());
Line 60:         } else {
Line 61:             handleVdsError(AuditLogType.GEOREP_SESSION_STOP_FAILED, 
returnValue.getVdsError().getMessage());
Line 62:             return;
same return question as before
Line 63:         }
Line 64:     }
Line 65: 
Line 66:     @Override


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I537a11bde7c412599a00269d44764f554bb4618d
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sahina Bose <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Ramesh N <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Shubhendu Tripathi <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: anmolbabu <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to