Allon Mureinik has posted comments on this change.

Change subject: core: early domain check in electNewMaster
......................................................................


Patch Set 2: Code-Review+1

(1 comment)

http://gerrit.ovirt.org/#/c/28229/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageDomainCommandBase.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/StorageDomainCommandBase.java:

Line 349:         List<StorageDomain> storageDomains = 
getStorageDomainDAO().getAllForStoragePool(getStoragePool().getId());
Line 350:         Collections.sort(storageDomains, 
LastTimeUsedAsMasterComp.instance);
Line 351: 
Line 352:         if (storageDomains.isEmpty()) {
Line 353:             log.warnFormat("Cannot elect new master: storage domains 
not found");
how about "Cannot elect new master, no storage domains found for pool $spName" ?
Line 354:             return null;
Line 355:         }
Line 356: 
Line 357:         StorageDomain newMaster = null;


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Iaf651cf670cffa2aea1443ee33153421785534a4
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Liron Ar <lara...@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