diff --git a/src/backend/access/gin/ginxlog.c b/src/backend/access/gin/ginxlog.c index ea85c4e2c0351ca5c5a3cb6422fc54cd191de2b1..d9b0ce02ac4dd39475a627f1afb404caad125560 100644 --- a/src/backend/access/gin/ginxlog.c +++ b/src/backend/access/gin/ginxlog.c @@ -512,6 +512,7 @@ ginRedoUpdateMetapage(XLogReaderState *record) Assert(BufferGetBlockNumber(metabuffer) == GIN_METAPAGE_BLKNO); metapage = BufferGetPage(metabuffer); + GinInitPage(metapage, GIN_META, BufferGetPageSize(metabuffer)); memcpy(GinPageGetMeta(metapage), &data->metadata, sizeof(GinMetaPageData)); PageSetLSN(metapage, lsn); MarkBufferDirty(metabuffer);