Arik Hadas has posted comments on this change.
Change subject: core: add memory volume to snapshot entity
......................................................................
Patch Set 17: (2 inline comments)
....................................................
File
backend/manager/dbscripts/upgrade/03_03_0172_add_memory_volume_column_snapshots.sql
Line 1: --Add memory volume into snapshots
Line 2: SELECT fn_db_add_column('snapshots', 'memory_volume', 'character
varying(255)');
that was the implementation at the beginning and I changed it because allon
convinced me that it would be better to have nulls in the DB, see:
http://gerrit.ovirt.org/#/c/14053/10/backend/manager/dbscripts/upgrade/03_03_0142_add_memory_volume_column_snapshots.sql
....................................................
File
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/SnapshotDaoDbFacadeImpl.java
Line 201: parameterSource);
Line 202: }
Line 203:
Line 204: private String getNullableRepresentation(String memoryVolume) {
Line 205: return memoryVolume.isEmpty() ? null : memoryVolume;
this method is used for the other way: Java -> DB, and in Java the memory
volume can't be null (it is initialized to empty string, and its setter doesn't
allow to change it to null)
Line 206: }
--
To view, visit http://gerrit.ovirt.org/14053
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Iecda4c491fe6e207386edf2a9bf2488ec81a332a
Gerrit-PatchSet: 17
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches