Skip to content

Commit 3f5ed28

Browse files
committed
Use common method Read.countsForNode
1 parent badd81e commit 3f5ed28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compatibility/5-common/neo4j-kernel-adapter/src/main/java17/org/neo4j/gds/compat/_5x/PartitionedStoreScan.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ public static List<StoreScan<NodeLabelIndexCursor>> createScans(
6666
// and use that one as the driving partitioned index scan. The partitions
6767
// of all other partitioned index scans will be aligned to that one.
6868
int maxToken = labelIds[0];
69-
long maxCount = read.estimateCountsForNode(labelIds[0]);
69+
long maxCount = read.countsForNode(labelIds[0]);
7070
int maxIndex = 0;
7171

7272
for (int i = 1; i < labelIds.length; i++) {
73-
long count = read.estimateCountsForNode(labelIds[i]);
73+
long count = read.countsForNode(labelIds[i]);
7474
if (count > maxCount) {
7575
maxCount = count;
7676
maxToken = labelIds[i];

0 commit comments

Comments
 (0)