Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void IndexModifier::flush (  ) 

Make sure all changes are written to disk.

Exceptions:
IOException 

Definition at line 75 of file IndexModifier.cpp.

References assureOpen(), IndexReader::close(), IndexWriter::close(), createIndexReader(), and createIndexWriter().

                          {
      SCOPED_LOCK_MUTEX(directory->THIS_LOCK)
      assureOpen();
      if (indexWriter != NULL) {
            indexWriter->close();
            _CLDELETE(indexWriter);
            createIndexWriter();
      } else {
            indexReader->close();
            _CLDELETE(indexReader);
            createIndexReader();
      }
}


Generated by  Doxygen 1.6.0   Back to index