mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 16:28:40 +00:00
Switched to READ_STREAM_FULL and read_stream_pause [skip ci]
This commit is contained in:
1 parent
90aaf2102b
commit
c43fc9dedf
1 file changed
+2
-2
+2
-2
@@ -829,7 +829,7 @@ HnswReadStreamNextBlock(ReadStream *stream, void *callback_private_data, void *p
|
||||
HnswUnvisited *uv;
|
||||
|
||||
if (streamData->visited == streamData->unvisitedLength)
|
||||
return InvalidBlockNumber;
|
||||
return read_stream_pause(stream);
|
||||
|
||||
uv = &streamData->unvisited[streamData->visited++];
|
||||
*offno = ItemPointerGetOffsetNumber(&uv->indextid);
|
||||
@@ -862,7 +862,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in
|
||||
|
||||
if (!inMemory)
|
||||
{
|
||||
int flags = READ_STREAM_USE_BATCHING;
|
||||
int flags = READ_STREAM_FULL;
|
||||
|
||||
if (maintenance)
|
||||
flags |= READ_STREAM_MAINTENANCE;
|
||||
|
||||
Reference in new issue
Block a user