Allon Mureinik has posted comments on this change.

Change subject: backend,webadmin: Enable virtual drive size extension
......................................................................


Patch Set 14: Looks good to me, but someone else must approve

(1 inline comment)

@Sergey - please answer the inline comment

....................................................
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/ImageDaoDbFacadeImpl.java
Line 40:     public void updateImageSize(Guid id, long size) {
Line 41:         MapSqlParameterSource parameterSource = 
getCustomMapSqlParameterSource()
Line 42:                 .addValue("image_id", id)
Line 43:                 .addValue("size", size)
Line 44:                 .addValue("lastModified", new Date());
IIRC, using a Date() truncates the hours/minutes/seconds, and you should use 
java.sql.Timestamp instead - did you verify this works correctly?
Line 45:         getCallsHandler().executeModification("UpdateImageSize", 
parameterSource);
Line 46:     }
Line 47: 
Line 48:     @Override


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie702348a68a26ac02a01f66aaa1ea42c2c675ebb
Gerrit-PatchSet: 14
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: A Burden <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Cheryn Tan <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: liron aravot <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to