1
0
mirror of https://github.com/pgvector/pgvector.git synced 2026-10-23 10:48:54 +03:00

Updated code [skip ci]

This commit is contained in:
Andrew Kane
2026-10-05 22:52:02 -07:00
parent 71b634a5f1
commit 4cf977bbcd

View File

@@ -887,11 +887,6 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
int unvisitedLength;
bool inMemory = index == NULL;
#if PG_VERSION_NUM >= 190000
HnswReadStreamData *streamData = &readStream->streamData;
ReadStream *stream = readStream->stream;
#endif
if (v == NULL)
{
v = &vh;
@@ -955,6 +950,10 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
HnswLoadUnvisitedFromMemory(base, cElement, unvisited, &unvisitedLength, v, lc, localNeighborhood, neighborhoodSize);
else
{
#if PG_VERSION_NUM >= 190000
HnswReadStreamData *streamData = &readStream->streamData;
#endif
HnswLoadUnvisitedFromDisk(cElement, unvisited, &unvisitedLength, v, index, m, lm, lc);
#if PG_VERSION_NUM >= 190000
@@ -962,7 +961,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
streamData->unvisitedLength = unvisitedLength;
streamData->visited = 0;
read_stream_resume(stream);
read_stream_resume(readStream->stream);
#endif
}
@@ -995,7 +994,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
#if PG_VERSION_NUM >= 190000
void *offnoPtr;
buf = read_stream_next_buffer(stream, &offnoPtr);
buf = read_stream_next_buffer(readStream->stream, &offnoPtr);
if (!BufferIsValid(buf))
break;