From d48400be20fba374d914b73e6199aa3881b4e612 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 27 Apr 2011 16:25:00 +0000 Subject: [PATCH] LUCENE-3023: more cleanups git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/realtime_search@1097169 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/index/DocumentsWriterDeleteQueue.java | 2 +- .../org/apache/lucene/index/DocumentsWriterPerThreadPool.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lucene/src/java/org/apache/lucene/index/DocumentsWriterDeleteQueue.java b/lucene/src/java/org/apache/lucene/index/DocumentsWriterDeleteQueue.java index 2b9bd40542c..486c12659f7 100644 --- a/lucene/src/java/org/apache/lucene/index/DocumentsWriterDeleteQueue.java +++ b/lucene/src/java/org/apache/lucene/index/DocumentsWriterDeleteQueue.java @@ -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; /* diff --git a/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java b/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java index 83736f59749..611f5048283 100644 --- a/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java +++ b/lucene/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java @@ -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; }