File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -622,21 +622,25 @@ ptrack_get_pagemapset(PG_FUNCTION_ARGS)
622
622
623
623
update_lsn1 = pg_atomic_read_u64 (& ptrack_map -> entries [slot1 ]);
624
624
625
+ #if USE_ASSERT_CHECKING
625
626
if (update_lsn1 != InvalidXLogRecPtr )
626
627
elog (DEBUG3 , "ptrack: update_lsn1 %X/%X of blckno %u of file %s" ,
627
628
(uint32 ) (update_lsn1 >> 32 ), (uint32 ) update_lsn1 ,
628
629
ctx -> bid .blocknum , ctx -> relpath );
630
+ #endif
629
631
630
632
/* Only probe the second slot if the first one is marked */
631
633
if (update_lsn1 >= ctx -> lsn )
632
634
{
633
635
slot2 = (size_t )(((hash << 32 ) | (hash >> 32 )) % PtrackContentNblocks );
634
636
update_lsn2 = pg_atomic_read_u64 (& ptrack_map -> entries [slot2 ]);
635
637
638
+ #if USE_ASSERT_CHECKING
636
639
if (update_lsn2 != InvalidXLogRecPtr )
637
640
elog (DEBUG3 , "ptrack: update_lsn2 %X/%X of blckno %u of file %s" ,
638
641
(uint32 ) (update_lsn1 >> 32 ), (uint32 ) update_lsn2 ,
639
642
ctx -> bid .blocknum , ctx -> relpath );
643
+ #endif
640
644
641
645
/* Block has been changed since specified LSN. Mark it in the bitmap */
642
646
if (update_lsn2 >= ctx -> lsn )
You can’t perform that action at this time.
0 commit comments