diff --git a/src/hnsw.h b/src/hnsw.h index 65df93d..3497b95 100644 --- a/src/hnsw.h +++ b/src/hnsw.h @@ -318,10 +318,8 @@ int HnswGetM(Relation index); int HnswGetEfConstruction(Relation index); FmgrInfo *HnswOptionalProcInfo(Relation index, uint16 procnum); bool HnswNormValue(FmgrInfo *procinfo, Oid collation, Datum *value, Vector * result); -void HnswCommitBuffer(Buffer buf, GenericXLogState *state); Buffer HnswNewBuffer(Relation index, ForkNumber forkNum); void HnswInitPage(Buffer buf, Page page); -void HnswInitRegisterPage(Relation index, Buffer *buf, Page *page, GenericXLogState **state); void HnswInit(void); List *HnswSearchLayer(Datum q, List *ep, int ef, int lc, Relation index, FmgrInfo *procinfo, Oid collation, int m, bool inserting, HnswElement skipElement); HnswElement HnswGetEntryPoint(Relation index); diff --git a/src/hnswutils.c b/src/hnswutils.c index 0421e11..1dd6125 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -184,27 +184,6 @@ HnswInitPage(Buffer buf, Page page) HnswPageGetOpaque(page)->page_id = HNSW_PAGE_ID; } -/* - * Init and register page - */ -void -HnswInitRegisterPage(Relation index, Buffer *buf, Page *page, GenericXLogState **state) -{ - *state = GenericXLogStart(index); - *page = GenericXLogRegisterBuffer(*state, *buf, GENERIC_XLOG_FULL_IMAGE); - HnswInitPage(*buf, *page); -} - -/* - * Commit buffer - */ -void -HnswCommitBuffer(Buffer buf, GenericXLogState *state) -{ - GenericXLogFinish(state); - UnlockReleaseBuffer(buf); -} - /* * Allocate neighbors */