@@ -163,38 +163,8 @@ blbuild(Relation heap, Relation index, IndexInfo *indexInfo)
163163void
164164blbuildempty (Relation index )
165165{
166- <<<<<<< HEAD
167- Page metapage ;
168-
169- /* Construct metapage. */
170- metapage = (Page ) palloc (BLCKSZ );
171- BloomFillMetapage (index , metapage );
172-
173- /*
174- * Write the page and log it. It might seem that an immediate sync would
175- * be sufficient to guarantee that the file exists on disk, but recovery
176- * itself might remove it while replaying, for example, an
177- * XLOG_DBASE_CREATE or XLOG_TBLSPC_CREATE record. Therefore, we need
178- * this even when wal_level=minimal.
179- */
180- PageEncryptInplace (metapage , INIT_FORKNUM ,
181- BLOOM_METAPAGE_BLKNO );
182- PageSetChecksumInplace (metapage , BLOOM_METAPAGE_BLKNO );
183- smgrwrite (index -> rd_smgr , INIT_FORKNUM , BLOOM_METAPAGE_BLKNO ,
184- (char * ) metapage , true);
185- log_newpage (& index -> rd_smgr -> smgr_rnode .node , INIT_FORKNUM ,
186- BLOOM_METAPAGE_BLKNO , metapage , true);
187-
188- /*
189- * An immediate sync is required even if we xlog'd the page, because the
190- * write did not go through shared_buffers and therefore a concurrent
191- * checkpoint may have moved the redo pointer past our xlog record.
192- */
193- smgrimmedsync (index -> rd_smgr , INIT_FORKNUM );
194- = == == ==
195166 /* Initialize the meta page */
196167 BloomInitMetapage (index , INIT_FORKNUM );
197- >>>>>>> REL_16_9
198168}
199169
200170/*
0 commit comments