Skip to content

Commit e63b73a

Browse files
committed
Fix missing success=true in constructor
1 parent dd48d97 commit e63b73a

File tree

1 file changed

+1
-0
lines changed
  • x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/blockhash

1 file changed

+1
-0
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/blockhash/LongTopNBlockHash.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ final class LongTopNBlockHash extends BlockHash {
6060
try {
6161
this.hash = new LongHash(1, blockFactory.bigArrays());
6262
this.topValues = new LongTopNSet(blockFactory.bigArrays(), asc ? SortOrder.ASC : SortOrder.DESC, limit);
63+
success = true;
6364
} finally {
6465
if (success == false) {
6566
close();

0 commit comments

Comments
 (0)