8000 Moved code [skip ci] · postgrespro/pgvector@b163b5b · GitHub
[go: up one dir, main page]

Skip to content

Commit b163b5b

Browse files
committed
Moved code [skip ci]
1 parent 6a30c1e commit b163b5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hnswscan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
128128
so = (HnswScanOpaque) palloc(sizeof(HnswScanOpaqueData));
129129
so->typeInfo = HnswGetTypeInfo(index);
130130

131+
/* Set support functions */
132+
HnswInitSupport(&so->support, index);
133+
131134
/*
132135
* Use a lower max allocation size than default to allow scanning more
133136
* tuples for iterative search before exceeding work_mem
@@ -136,9 +139,6 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
136139
"Hnsw scan temporary context",
137140
0, 8 * 1024, 512 * 1024);
138141

139-
/* Set support functions */
140-
HnswInitSupport(&so->support, index);
141-
142142
/* Calculate max memory */
143143
maxMemory = (double) work_mem * hnsw_scan_mem_multiplier * 1024.0;
144144
so->maxMemory = Min(maxMemory, (double) SIZE_MAX);

0 commit comments

Comments
 (0)
0