Shubhendu Tripathi has posted comments on this change.

Change subject: gluster: Sync job for gluster volume snapshots
......................................................................


Patch Set 12:

(1 comment)

http://gerrit.ovirt.org/#/c/35904/12/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GlusterSnapshotSyncJob.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GlusterSnapshotSyncJob.java:

Line 112:         Map<Guid, List<GlusterVolumeSnapshotEntity>> 
volumeWiseSnapshots =
Line 113:                 new HashMap<Guid, 
List<GlusterVolumeSnapshotEntity>>();
Line 114:         for (GlusterVolumeSnapshotEntity snapshot : fetchedSnapshots) 
{
Line 115:             if (volumeWiseSnapshots.get(snapshot.getVolumeId()) == 
null) {
Line 116:                 volumeWiseSnapshots.put(snapshot.getVolumeId(), new 
ArrayList<GlusterVolumeSnapshotEntity>());
> yes. will do that
Here is need to use new ArrayList<GlusterVolumeSnapshotEntity> as map is 
defined that way and we cannot use put (Guid, new ArrayList<>()).
Line 117:             }
Line 118:             
volumeWiseSnapshots.get(snapshot.getVolumeId()).add(snapshot);
Line 119:         }
Line 120: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7b7bf79b72fc5680dab301b290e7aa860d5c714d
Gerrit-PatchSet: 12
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Ramesh N <rnach...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@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