Fixed error on Windows [skip ci]

This commit is contained in:
Andrew Kane
2024-01-15 19:33:16 -08:00
parent 2f9371516d
commit 1612b84069
2 changed files with 8 additions and 5 deletions

View File

@@ -697,13 +697,16 @@ AddToVisited(char *base, visited_hash v, HnswCandidate * hc, Relation index, boo
static inline bool
CountElement(char *base, HnswElement skipElement, HnswCandidate * hc)
{
HnswElement e;
if (skipElement == NULL)
return true;
/* Ensure does not access heaptidsLength during in-memory build */
pg_memory_barrier();
return HnswPtrAccess(base, hc->element)->heaptidsLength != 0;
e = HnswPtrAccess(base, hc->element);
return e->heaptidsLength != 0;
}
/*