You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Doug Cutting <cu...@apache.org> on 2004/10/01 18:22:35 UTC
Re: DbDirectory and compound files
Andi Vajda wrote:
> This point about buffering brings up another point. Currently, there is
> no public way to tell the open IndexWriter to flush its Directory. This
> makes it difficult to use several transactions during the lifetime of
> the IndexWriter.
The only thing in the Directory API which is required to be atomic and
that's used to implement commit, is renameFile(). This is called when
all IndexOutputs have been closed. Immediately after the rename is
completed is the appropriate place to commit a transaction. Perhaps
this should be more explicit in the API...
Doug
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org