Only pass discarded when streaming [skip ci]

This commit is contained in:
Andrew Kane
2024-09-22 17:47:10 -07:00
parent 80cbd32dab
commit 52c385c03a

View File

@@ -40,7 +40,7 @@ GetScanItems(IndexScanDesc scan, Datum q)
ep = w;
}
return HnswSearchLayer(base, q, ep, hnsw_ef_search, 0, index, procinfo, collation, m, false, NULL, &so->v, &so->discarded, true);
return HnswSearchLayer(base, q, ep, hnsw_ef_search, 0, index, procinfo, collation, m, false, NULL, &so->v, hnsw_streaming ? &so->discarded : NULL, true);
}
/*