public void cleanupLinkNeighbour ( String busName ) throws SIRollbackException , SIConnectionLostException , SIIncorrectCallException , SIResourceException , SIErrorException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "cleanupLinkNeighbour" ) ; Neighbour neighbour = _neighbours . getBusNeighbour ( busName ) ; if ( neighbour != null ) { LocalTransaction tran = _messageProcessor . getTXManager ( ) . createLocalTransaction ( true ) ; deleteNeighbourForced ( neighbour . getUUID ( ) , busName , ( Transaction ) tran ) ; tran . commit ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "cleanupLinkNeighbour" ) ; }
When a link is deleted we need to clean up any neighbours that won t be deleted at restart time .