public static void clearMirrorsFlags(IngestionRequestContext requestContext,Volume volume,Set<DataObject> updatedObjects,DbClient dbClient){
  if (volume.getMirrors() != null) {
    for (    String volumeId : volume.getMirrors()) {
      BlockObject bo=requestContext.findDataObjectByType(BlockMirror.class,URI.create(volumeId),true);
      if (null != bo && bo instanceof BlockMirror) {
        _logger.info("Clearing internal volume flag of mirror {} of RP volume {}",bo.getLabel(),volume.getLabel());
        bo.clearInternalFlags(BlockIngestOrchestrator.INTERNAL_VOLUME_FLAGS);
        updatedObjects.add(bo);
      }
    }
  }
}

public static void clearMirrorsFlags ( IngestionRequestContext requestContext , Volume volume , Set < DataObject > updatedObjects , DbClient dbClient ) { if ( volume . getMirrors ( ) != null ) { for ( String volumeId : volume . getMirrors ( ) ) { BlockObject bo = requestContext . findDataObjectByType ( BlockMirror . class , URI . create ( volumeId ) , true ) ; if ( null != bo && bo instanceof BlockMirror ) { _logger . info ( "Clearing internal volume flag of mirror {} of RP volume {}" , bo . getLabel ( ) , volume . getLabel ( ) ) ; bo . clearInternalFlags ( BlockIngestOrchestrator . INTERNAL_VOLUME_FLAGS ) ; updatedObjects . add ( bo ) ; } } } }
clear the flags of the mirrors of the rp volume
