You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2024/08/01 14:25:17 UTC

(lucene) branch branch_9x updated: Fix lazy decoding of freqs. (#13585)

This is an automated email from the ASF dual-hosted git repository.

jpountz pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new adc2361b01d Fix lazy decoding of freqs. (#13585)
adc2361b01d is described below

commit adc2361b01dfd30972b681b15ca760b008818e6e
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Thu Aug 1 16:24:16 2024 +0200

    Fix lazy decoding of freqs. (#13585)
---
 .../java/org/apache/lucene/codecs/lucene912/Lucene912PostingsReader.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene912/Lucene912PostingsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene912/Lucene912PostingsReader.java
index ef3e3aac3c4..db54877fd2b 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene912/Lucene912PostingsReader.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene912/Lucene912PostingsReader.java
@@ -444,6 +444,7 @@ public final class Lucene912PostingsReader extends PostingsReaderBase {
       if (freqFP != -1) {
         docIn.seek(freqFP);
         pforUtil.decode(docIn, freqBuffer);
+        freqFP = -1;
       }
 
       return (int) freqBuffer[docBufferUpto - 1];