Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c069399

Browse files
committed
Merge branch 'master' into issue_92
2 parents 500e8b9 + eb2a397 commit c069399

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/data.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ prepare_page(ConnectionArgs *arguments,
356356
((strict && !is_ptrack_support) || !strict))
357357
{
358358
/* show this message for checkdb or backup without ptrack support */
359-
elog(WARNING, "CORRUPTION in file %s, block %u",
359+
elog(WARNING, "Corruption detected in file \"%s\", block %u",
360360
file->path, blknum);
361361
}
362362

tests/backup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,12 @@ def test_backup_detect_corruption(self):
470470
repr(self.output), self.cmd))
471471
except ProbackupException as e:
472472
self.assertIn(
473-
'Insert correct message',
473+
'WARNING: Corruption detected in file',
474+
e.message,
475+
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
476+
repr(e.message), self.cmd))
477+
self.assertIn(
478+
'ERROR: Data file corruption',
474479
e.message,
475480
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
476481
repr(e.message), self.cmd))

0 commit comments

Comments
 (0)