PT-2424 - Typo in pt-table-checksum error message "--resume and --no-empty-replicate-table are mutually exclusive"

- Fixed typo
- Added test case
This commit is contained in:
Sveta Smirnova
2025-03-27 21:09:10 +03:00
parent 25f4ee6d80
commit e964e17f21
2 changed files with 25 additions and 2 deletions

View File

@@ -10272,11 +10272,11 @@ sub main {
if ( $o->get('truncate-replicate-table') && $o->get('resume') ) {
die "--resume and truncate-replicate-table are mutually exclusive";
die "--resume and truncate-replicate-table are mutually exclusive";
}
if ( $o->get('truncate-replicate-table') && !$o->get('empty-replicate-table') ) {
die "--resume and --no-empty-replicate-table are mutually exclusive";
die "--truncate-replicate-table and --no-empty-replicate-table are mutually exclusive";
}
# ########################################################################