classReplicaConditions
final class ReplicaConditions
The checks the server's parser applies to the UNTIL clause and the connection options of START REPLICA.
Rule: MYSQL-REPLICA-UNTIL-001. The UNTIL condition is refused (ER_BAD_REPLICA_UNTIL_COND) when a source or relay log position is combined with a GTID set, when it names neither a complete source log position (file and position), a complete relay log position, a GTID set nor SQL_AFTER_MTS_GAPS, or when SQL_AFTER_MTS_GAPS is combined with any other condition. Connection options (USER, PASSWORD, DEFAULT_AUTH, PLUGIN_DIR) are refused when the thread list starts the applier thread without the receiver thread (ER_SQLTHREAD_WITH_SECURE_REPLICA). The same checks apply in every release. Terminates: one pass over the lists. Source: sql/sql_yacc.yy (opt_replica_until, slave_until, start_replica_stmt, slave), https://dev.mysql.com/doc/refman/8.4/en/start-replica.html. Status: Implemented.
Methods§
public function until(ReplicaUntil $until): ?ReplicationErrorAnswers the check an UNTIL clause fails, if any.
Parameters
$until | ReplicaUntil |
Returns
Called from 1
Calls 6
- class-const SourceOptionKind::LogFile() line 42
- class-const SourceOptionKind::LogPosition() line 42
- class-const SourceOptionKind::RelayLogFile() line 43
- class-const SourceOptionKind::RelayLogPosition() line 43
- class-const UntilPoint::AfterGaps() line 45
- class-const ReplicationError::UntilCondition() line 50
public function credentialsRefused(list<ReplicaThread> $threads, bool $credentials): boolTells whether connection options are refused for the threads a START REPLICA names.
Parameters
$threads | list<ReplicaThread> | |
$credentials | bool |
Returns
boolTest cases 1
Called from 1
Calls 3
- function-call
in_arrayline 60 - class-const ReplicaThread::Applier() line 60
- class-const ReplicaThread::Receiver() line 60
Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 1
Method calls 2
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:88
- method-call SqlSemantics\Platform\MySql\Statement\Replication\Replica\StartReplica::deriveStatement() packages/sql-semantics-mysql/src/Statement/Replication/Replica/StartReplica.php:94