code: func (sis *SegmentInfos) rollbackSegmentInfos(infos []*SegmentCommitInfo) {
  	if cap(sis.Segments) < len(infos) {
  		sis.Segments = make([]*SegmentCommitInfo, len(infos))
  		copy(sis.Segments, infos)
  	} else {
  		n := len(sis.Segments)
  		copy(sis.Segments, infos)
  		for i, limit := len(infos), n; i < limit; i++ {
  			sis.Segments[i] = nil
  		}
  		sis.Segments = sis.Segments[0:len(infos)]
  	}
  }
docs: // L1104