else if (in instanceof SegmentReader){
// should use SegmentReader.reopen
// TODO: see LUCENE-2559
SegmentReader sreader = (SegmentReader)in;
int numDels = sreader.numDeletedDocs();
SegmentInfo sinfo = null;
boolean sameSeg = false;
//get SegmentInfo instance
for (int i=0;i<size;++i){