private void updateVolumeConsistencyGroup(){
  log.info("Migrating Volume consistencyGroup to consistencyGroups.");
  DbClient dbClient=getDbClient();
  List<URI> volumeURIs=dbClient.queryByType(Volume.class,false);
  Iterator<Volume> volumes=dbClient.queryIterativeObjects(Volume.class,volumeURIs);
  List<BlockObject> blockObjects=new ArrayList<BlockObject>();
  while (volumes.hasNext()) {
    blockObjects.add(volumes.next());
  }
  migrate(blockObjects);
}

private void updateVolumeConsistencyGroup ( ) { log . info ( "Migrating Volume consistencyGroup to consistencyGroups." ) ; DbClient dbClient = getDbClient ( ) ; List < URI > volumeURIs = dbClient . queryByType ( Volume . class , false ) ; Iterator < Volume > volumes = dbClient . queryIterativeObjects ( Volume . class , volumeURIs ) ; List < BlockObject > blockObjects = new ArrayList < BlockObject > ( ) ; while ( volumes . hasNext ( ) ) { blockObjects . add ( volumes . next ( ) ) ; } migrate ( blockObjects ) ; }
update the volume object to migrate the old consistencygroup field into the new consistencygroup list field .
