Ensure searchState is always reset [skip ci]

This commit is contained in:
Andrew Kane committed 2026-10-30 13:03:15 -07:00
1 parent 44624c1f8d
commit 9fbe946b45
1 file changed
+11 -11
+11 -11
View File
@@ -814,21 +814,21 @@ HnswLoadUnvisitedFromDisk(HnswElement element, HnswUnvisited * unvisited, int *u
*unvisitedLength = 0;
if (!HnswLoadNeighborTids(element, indextids, index, m, lm, lc))
return;
for (int i = 0; i < lm; i++)
if (HnswLoadNeighborTids(element, indextids, index, m, lm, lc))
{
ItemPointer indextid = &indextids[i];
bool found;
for (int i = 0; i < lm; i++)
{
ItemPointer indextid = &indextids[i];
bool found;
if (!ItemPointerIsValid(indextid))
break;
if (!ItemPointerIsValid(indextid))
break;
tidhash_insert(v->tids, *indextid, &found);
tidhash_insert(v->tids, *indextid, &found);
if (!found)
unvisited[(*unvisitedLength)++].indextid = *indextid;
if (!found)
unvisited[(*unvisitedLength)++].indextid = *indextid;
}
}
searchState->unvisited = unvisited;