mirror of https://github.com/apache/lucene.git
port rev 1241965 to trunk (remove dead code from SearcherManager).
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1241966 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c0319d5928
commit
9c7fbf58e9
|
@ -238,10 +238,6 @@ public final class SearcherManager implements Closeable {
|
||||||
|
|
||||||
private synchronized void swapSearcher(IndexSearcher newSearcher) throws IOException {
|
private synchronized void swapSearcher(IndexSearcher newSearcher) throws IOException {
|
||||||
ensureOpen();
|
ensureOpen();
|
||||||
// Don't allow un-closing!
|
|
||||||
if (currentSearcher == null && newSearcher != null) {
|
|
||||||
throw new AlreadyClosedException("this SearcherManager is closed");
|
|
||||||
}
|
|
||||||
final IndexSearcher oldSearcher = currentSearcher;
|
final IndexSearcher oldSearcher = currentSearcher;
|
||||||
currentSearcher = newSearcher;
|
currentSearcher = newSearcher;
|
||||||
release(oldSearcher);
|
release(oldSearcher);
|
||||||
|
|
Loading…
Reference in New Issue