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

stoty pushed a commit to branch 5.1
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/5.1 by this push:
     new 77c9c56fc5 PHOENIX-7057 Potential bug in 
MetadataEndpointImpl#updateIndexState.
77c9c56fc5 is described below

commit 77c9c56fc53eb26d8bbc461fba71809b218c1da0
Author: Istvan Toth <st...@apache.org>
AuthorDate: Mon Oct 2 13:53:36 2023 +0200

    PHOENIX-7057 Potential bug in MetadataEndpointImpl#updateIndexState.
---
 .../main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
index b4bba44947..871249fadb 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
@@ -3694,7 +3694,7 @@ TABLE_FAMILY_BYTES, TABLE_SEQ_NUM_BYTES);
                         byte[] count;
                         try (RegionScanner countScanner = 
region.getScanner(new Scan(get))) {
                             List<Cell> countCells = new ArrayList<>();
-                            scanner.next(countCells);
+                            countScanner.next(countCells);
                             count = Result.create(countCells)
                                     .getValue(TABLE_FAMILY_BYTES,
                                         
PhoenixDatabaseMetaData.PENDING_DISABLE_COUNT_BYTES);

Reply via email to