private void cleanupProtectionSetVolumes(ProtectionSet protectionSet,List<String> volumeIDs,boolean markProtectionSetForDeletion){
  if (protectionSet != null) {
    _log.info("Removing the following volumes from protection set {}: {}",protectionSet.getLabel(),volumeIDs.toString());
    StringSet psetVolumes=protectionSet.getVolumes();
    psetVolumes.removeAll(volumeIDs);
    protectionSet.setVolumes(psetVolumes);
    if (markProtectionSetForDeletion) {
      protectionSet.setInactive(true);
    }
    _dbClient.updateObject(protectionSet);
  }
}

private void cleanupProtectionSetVolumes ( ProtectionSet protectionSet , List < String > volumeIDs , boolean markProtectionSetForDeletion ) { if ( protectionSet != null ) { _log . info ( "Removing the following volumes from protection set {}: {}" , protectionSet . getLabel ( ) , volumeIDs . toString ( ) ) ; StringSet psetVolumes = protectionSet . getVolumes ( ) ; psetVolumes . removeAll ( volumeIDs ) ; protectionSet . setVolumes ( psetVolumes ) ; if ( markProtectionSetForDeletion ) { protectionSet . setInactive ( true ) ; } _dbClient . updateObject ( protectionSet ) ; } }
cleans up the given protectionset by removing volumes from it and marking for deletion if specified . also removes the volume ' s association on the blockconsistencygroup .
