From 3b9c4c55ee15af32ae270998a261b73fe692fc7d Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 22 Jan 2024 18:39:52 -0800 Subject: [PATCH] Use consistent order [skip ci] --- src/hnswutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hnswutils.c b/src/hnswutils.c index 10a0d77..551e089 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -660,7 +660,7 @@ CreatePairingHeapNode(HnswCandidate * c) * Init visited */ static inline void -InitVisited(visited_hash * v, char *base, Relation index, int ef, int m) +InitVisited(char *base, visited_hash * v, Relation index, int ef, int m) { if (index != NULL) v->tids = tidhash_create(CurrentMemoryContext, ef * m * 2, NULL); @@ -739,7 +739,7 @@ HnswSearchLayer(char *base, Datum q, List *ep, int ef, int lc, Relation index, F HnswNeighborArray *neighborhoodData = NULL; Size neighborhoodSize; - InitVisited(&v, base, index, ef, m); + InitVisited(base, &v, index, ef, m); /* Create local memory for neighborhood if needed */ if (index == NULL)