Vered Volansky has posted comments on this change.

Change subject: core: Add storage space thresholds support
......................................................................


Patch Set 37:

(1 comment)

Allon, Please elaborate.

https://gerrit.ovirt.org/#/c/35277/37/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageDomainStaticDAODbFacadeImpl.java
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageDomainStaticDAODbFacadeImpl.java:

Line 119:             entity.setStorageFormat(StorageFormatType.forValue(rs
Line 120:                     .getString("storage_domain_format_type")));
Line 121:             
entity.setLastTimeUsedAsMaster(rs.getLong("last_time_used_as_master"));
Line 122:             
entity.setWipeAfterDelete(rs.getBoolean("wipe_after_delete"));
Line 123:             
entity.setWarningLowSpaceIndicator(rs.getInt("warning_low_space_indicator"));
> If this can be null in the DB (AFAIK, it can), you should use (Integer) rs.
Done
Line 124:             
entity.setCriticalSpaceActionBlocker(rs.getInt("critical_space_action_blocker"));
Line 125:             return entity;
Line 126:         }
Line 127:     }


-- 
To view, visit https://gerrit.ovirt.org/35277
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I19621dfc770c69003d731a7593d037d7d4040a82
Gerrit-PatchSet: 37
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vered Volansky <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Idan Shaby <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[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