Removed HnswPtrSetNull to avoid setting relptr_off directly

This commit is contained in:
Andrew Kane
2024-01-16 17:08:13 -08:00
parent 1458c7bb2a
commit d801a843f4
4 changed files with 7 additions and 7 deletions

View File

@@ -551,8 +551,8 @@ BuildCallback(Relation index, CALLBACK_ITEM_POINTER, Datum *values,
static void
InitGraph(HnswGraph * graph, char *base, long memoryTotal)
{
HnswPtrSetNull(base, graph->head);
HnswPtrSetNull(base, graph->entryPoint);
HnswPtrStore(base, graph->head, (HnswElement) NULL);
HnswPtrStore(base, graph->entryPoint, (HnswElement) NULL);
graph->memoryUsed = 0;
graph->memoryTotal = memoryTotal;
graph->flushed = false;