lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <>
Subject Unsynced flush in IW get reader
Date Thu, 04 Nov 2010 17:54:20 GMT
I'm curious why the flush call in IW getReader isn't synced?  The main
work of flush is synced, ie, the doFlush method.  Then we're syncing
yet again to call applyDeletes, redundantly because deletes were
previously flushed in the flush call. I'm guessing we're trying to
gain some concurrency however given doFlush is synced, there probably
isn't much?  Maybe we should simply flush inside the sync this block
in getReader?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message