[Issue #252] fix for additional debug messages

This commit is contained in:
Grigory Smolkin
2020-09-09 22:43:48 +03:00
parent 2002573a35
commit d67fe9c2ec
2 changed files with 3 additions and 4 deletions
+3
View File
@@ -2376,6 +2376,9 @@ process_block_change(ForkNumber forknum, RelFileNode rnode, BlockNumber blkno)
*/
if (file_item)
{
if (blkno_inseg > 131072)
elog(WARNING, "Detecting big blkno %u", blkno_inseg);
/* We need critical section only we use more than one threads */
if (num_threads > 1)
pthread_lock(&backup_pagemap_mutex);
-4
View File
@@ -1771,10 +1771,6 @@ extractPageInfo(XLogReaderState *record, XLogReaderData *reader_data,
if (forknum != MAIN_FORKNUM)
continue;
if (blkno > 131072)
elog(WARNING, "Detecting big blkno %u in record %X/%X",
blkno, (uint32) (record->ReadRecPtr >> 32), (uint32) (record->ReadRecPtr));
process_block_change(forknum, rnode, blkno);
}
}