Improved function names

This commit is contained in:
Andrew Kane
2024-01-28 21:00:12 -08:00
parent 270dd8189a
commit 642ee1f423

View File

@@ -141,10 +141,10 @@ HnswBuildAppendPage(Relation index, Buffer *buf, Page *page, ForkNumber forkNum)
} }
/* /*
* Create element pages * Create graph pages
*/ */
static void static void
CreateElementPages(HnswBuildState * buildstate) CreateGraphPages(HnswBuildState * buildstate)
{ {
Relation index = buildstate->index; Relation index = buildstate->index;
ForkNumber forkNum = buildstate->forkNum; ForkNumber forkNum = buildstate->forkNum;
@@ -244,10 +244,10 @@ CreateElementPages(HnswBuildState * buildstate)
} }
/* /*
* Create neighbor pages * Write neighbor tuples
*/ */
static void static void
CreateNeighborPages(HnswBuildState * buildstate) WriteNeighborTuples(HnswBuildState * buildstate)
{ {
Relation index = buildstate->index; Relation index = buildstate->index;
ForkNumber forkNum = buildstate->forkNum; ForkNumber forkNum = buildstate->forkNum;
@@ -299,8 +299,8 @@ FlushPages(HnswBuildState * buildstate)
#endif #endif
CreateMetaPage(buildstate); CreateMetaPage(buildstate);
CreateElementPages(buildstate); CreateGraphPages(buildstate);
CreateNeighborPages(buildstate); WriteNeighborTuples(buildstate);
buildstate->graph->flushed = true; buildstate->graph->flushed = true;
MemoryContextReset(buildstate->graphCtx); MemoryContextReset(buildstate->graphCtx);