You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/01/03 00:51:38 UTC
svn commit: r1054500 -
/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/pulsing/PulsingPostingsWriterImpl.java
Author: mikemccand
Date: Sun Jan 2 23:51:38 2011
New Revision: 1054500
URL: http://svn.apache.org/viewvc?rev=1054500&view=rev
Log:
pulsing codec was failing to forward finishDoc to the wrapped codec
Modified:
lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/pulsing/PulsingPostingsWriterImpl.java
Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/pulsing/PulsingPostingsWriterImpl.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/pulsing/PulsingPostingsWriterImpl.java?rev=1054500&r1=1054499&r2=1054500&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/pulsing/PulsingPostingsWriterImpl.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/pulsing/PulsingPostingsWriterImpl.java Sun Jan 2 23:51:38 2011
@@ -228,8 +228,11 @@ public final class PulsingPostingsWriter
}
@Override
- public void finishDoc() {
+ public void finishDoc() throws IOException {
assert omitTF || currentDoc.numPositions == currentDoc.termDocFreq;
+ if (pulsed) {
+ wrappedPostingsWriter.finishDoc();
+ }
}
boolean pendingIsIndexTerm;