code: func (w *IndexWriter) flushFailed(info *SegmentInfo) error {
  	w.Lock()
  	defer w.Unlock()
  	return w.deleter.refresh(info.Name)
  }
docs: /* Cleans up residuals from a segment that could not be entirely flushed due to an error */