pulsing codec was failing to forward finishDoc to the wrapped codec

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-01-02 23:51:38 +00:00
parent 317d3abbbe
commit eaf2af80a2
1 changed files with 4 additions and 1 deletions

View File

@ -228,8 +228,11 @@ public final class PulsingPostingsWriterImpl extends PostingsWriterBase {
}
@Override
public void finishDoc() {
public void finishDoc() throws IOException {
assert omitTF || currentDoc.numPositions == currentDoc.termDocFreq;
if (pulsed) {
wrappedPostingsWriter.finishDoc();
}
}
boolean pendingIsIndexTerm;