public void updateStats(int fIdx,long count){
synchronized (pq) {
    frmtCount[fIdx]+=count;
    Stats tmp=new Stats(fIdx,frmtCount[fIdx]);
    pq.remove(tmp);
    pq.offer(tmp);
  }
  if (LOG.isTraceEnabled()) {
    LOG.trace("update forest " + fIdx);
  }
}

public void updateStats ( int fIdx , long count ) { synchronized ( pq ) { frmtCount [ fIdx ] += count ; Stats tmp = new Stats ( fIdx , frmtCount [ fIdx ] ) ; pq . remove ( tmp ) ; pq . offer ( tmp ) ; } if ( LOG . isTraceEnabled ( ) ) { LOG . trace ( "update forest " + fIdx ) ; } }
add count to forest with index fidx , which may not be the forest with minimum frmtcount . used by fragment count rollback .
