code: func (w *IndexWriter) checkpoint() error {
  	w.Lock() // synchronized
  	defer w.Unlock()
  	return w._checkpoint()
  }
docs: /*
  Called whenever the SegmentInfos has been updatd and the index files
  referenced exist (correctly) in the index directory.
  */