@@ -732,7 +732,7 @@ _bt_page_recyclable(Page page)
732732 * and so must be scanned anyway during replay. We always write a WAL record
733733 * for the last block in the index, whether or not it contained any items
734734 * to be removed. This allows us to scan right up to end of index to
735- * ensure correct locking. That is the only time we are called with nitems==0.
735+ * ensure correct locking.
736736 */
737737void
738738_bt_delitems_vacuum (Relation rel ,Buffer buf ,
@@ -764,8 +764,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
764764 */
765765opaque -> btpo_flags &= ~BTP_HAS_GARBAGE ;
766766
767- if (nitems > 0 )
768- MarkBufferDirty (buf );
767+ MarkBufferDirty (buf );
769768
770769/* XLOG stuff */
771770if (RelationNeedsWAL (rel ))
@@ -805,11 +804,8 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
805804
806805recptr = XLogInsert (RM_BTREE_ID ,XLOG_BTREE_VACUUM ,rdata );
807806
808- if (nitems > 0 )
809- {
810- PageSetLSN (page ,recptr );
811- PageSetTLI (page ,ThisTimeLineID );
812- }
807+ PageSetLSN (page ,recptr );
808+ PageSetTLI (page ,ThisTimeLineID );
813809}
814810
815811END_CRIT_SECTION ();