230231232233234235236237238239240
if(segManager == null) return; while(!_freeQueue.isEmpty()) { Segment seg = _freeQueue.remove(); try { segManager.freeSegment(seg); } catch(Exception e) { _log.error("failed to free Segment " + seg.getSegmentId() + ": " + seg.getStatus(), e); } } }