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

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