Skip to content

Commit d67fe9c

Browse files
committed
[Issue #252] fix for additional debug messages
1 parent 2002573 commit d67fe9c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/backup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,6 +2376,9 @@ process_block_change(ForkNumber forknum, RelFileNode rnode, BlockNumber blkno)
23762376
*/
23772377
if (file_item)
23782378
{
2379+
if (blkno_inseg > 131072)
2380+
elog(WARNING, "Detecting big blkno %u", blkno_inseg);
2381+
23792382
/* We need critical section only we use more than one threads */
23802383
if (num_threads > 1)
23812384
pthread_lock(&backup_pagemap_mutex);

src/parsexlog.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,10 +1771,6 @@ extractPageInfo(XLogReaderState *record, XLogReaderData *reader_data,
17711771
if (forknum != MAIN_FORKNUM)
17721772
continue;
17731773

1774-
if (blkno > 131072)
1775-
elog(WARNING, "Detecting big blkno %u in record %X/%X",
1776-
blkno, (uint32) (record->ReadRecPtr >> 32), (uint32) (record->ReadRecPtr));
1777-
17781774
process_block_change(forknum, rnode, blkno);
17791775
}
17801776
}

0 commit comments

Comments
 (0)