final class ReplicaConditions
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

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 credentialsRefused(list<ReplicaThread> $threads, bool $credentials): bool

Tells whether connection options are refused for the threads a START REPLICA names.

Parameters

$threadslist<ReplicaThread>
$credentialsbool

Returns

bool
Test cases 1
Called from 1
Calls 3

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2

Relations§

Instantiated in 1
Method calls 2