mirror of https://github.com/apache/lucene.git
LUCENE-3023: more cleanups
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/realtime_search@1097169 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf67e6eb58
commit
d48400be20
|
@ -83,7 +83,7 @@ final class DocumentsWriterDeleteQueue {
|
|||
this(new BufferedDeletes(false), generation);
|
||||
}
|
||||
|
||||
DocumentsWriterDeleteQueue(BufferedDeletes globalBufferedDeletes,long generation) {
|
||||
DocumentsWriterDeleteQueue(BufferedDeletes globalBufferedDeletes, long generation) {
|
||||
this.globalBufferedDeletes = globalBufferedDeletes;
|
||||
this.generation = generation;
|
||||
/*
|
||||
|
|
|
@ -61,7 +61,6 @@ public abstract class DocumentsWriterPerThreadPool {
|
|||
volatile boolean flushPending = false;
|
||||
// write access guarded by DocumentsWriterFlushControl
|
||||
long bytesUsed = 0;
|
||||
|
||||
// guarded by Reentrant lock
|
||||
private boolean isActive = true;
|
||||
|
||||
|
@ -131,8 +130,7 @@ public abstract class DocumentsWriterPerThreadPool {
|
|||
|
||||
public DocumentsWriterPerThreadPool(int maxNumPerThreads) {
|
||||
maxNumPerThreads = (maxNumPerThreads < 1) ? IndexWriterConfig.DEFAULT_MAX_THREAD_STATES : maxNumPerThreads;
|
||||
this.perThreads = new ThreadState[maxNumPerThreads];
|
||||
|
||||
perThreads = new ThreadState[maxNumPerThreads];
|
||||
numThreadStatesActive = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue