mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 23:45:44 +00:00
merged pt-table-checksum-requires-recursion-when-working-with-and-XtraDB-Cluster-node-1373937
This commit is contained in:
@@ -9363,9 +9363,11 @@ sub main {
|
||||
|
||||
if ( $cluster_name_for{$master_cxn} ) {
|
||||
if ( !@$slaves ) {
|
||||
die $master_cxn->name() . " is a cluster node but no other nodes "
|
||||
. "or regular replicas were found. Use --recursion-method=dsn "
|
||||
. "to specify the other nodes in the cluster.\n";
|
||||
if ( ($o->get('recursion-method')->[0] || '') ne 'none' ) {
|
||||
die $master_cxn->name() . " is a cluster node but no other nodes "
|
||||
. "or regular replicas were found. Use --recursion-method=dsn "
|
||||
. "to specify the other nodes in the cluster.\n";
|
||||
}
|
||||
}
|
||||
|
||||
# Make sure the master and all node are in the same cluster.
|
||||
@@ -12240,9 +12242,13 @@ DSNs are ordered by C<id>, but C<id> and C<parent_id> are otherwise ignored.
|
||||
The C<dsn> column contains a replica DSN like it would be given on the command
|
||||
line, for example: C<"h=replica_host,u=repl_user,p=repl_pass">.
|
||||
|
||||
The C<none> method prevents the tool from connecting to any replicas.
|
||||
This effectively disables all the L<"REPLICA CHECKS"> because there will
|
||||
not be any replicas to check. Therefore, this method is not recommended.
|
||||
The C<none> method makes the tool ignore all slaves and cluster nodes. This
|
||||
method is not recommended because it effectively disables the
|
||||
L<"REPLICA CHECKS"> and no differences can be found. It is useful, however, if
|
||||
you only need to write checksums on the master or a single cluster node. The
|
||||
safer alternative is C<--no-replicate-check>: the tool finds replicas and
|
||||
cluster nodes, performs the L<"REPLICA CHECKS">, but does not check for
|
||||
differences. See L<"--[no]replicate-check">.
|
||||
|
||||
=item --replicate
|
||||
|
||||
|
Reference in New Issue
Block a user