This commit is contained in:
Andrew Kane
2022-07-31 21:56:44 -07:00
parent 434dc904c1
commit 0a68b040fb
4 changed files with 20 additions and 14 deletions

View File

@@ -107,9 +107,7 @@ InsertTuple(Relation rel, IndexTuple itup, Relation heapRel, Datum *values)
IvfflatPageGetOpaque(page)->nextblkno = insertPage;
/* Init page */
PageInit(newpage, BufferGetPageSize(newbuf), sizeof(IvfflatPageOpaqueData));
IvfflatPageGetOpaque(newpage)->nextblkno = InvalidBlockNumber;
IvfflatPageGetOpaque(newpage)->page_id = IVFFLAT_PAGE_ID;
IvfflatInitPage(newbuf, newpage);
/* Commit */
MarkBufferDirty(buf);