Skip to content

Commit

Permalink
Fix #15641 - Replication actions are not sent to a mysql link
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Dec 21, 2019
1 parent 931a6ec commit 774fc68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/classes/ReplicationGui.php
Expand Up @@ -1075,11 +1075,11 @@ public static function handleRequestForSlaveSkipError()
$count = $_POST['sr_skip_errors_count'] * 1;
}

$qStop = Replication::slaveControl("STOP");
$qStop = Replication::slaveControl("STOP", null, DatabaseInterface::CONNECT_USER);
$qSkip = $GLOBALS['dbi']->tryQuery(
"SET GLOBAL SQL_SLAVE_SKIP_COUNTER = " . $count . ";"
);
$qStart = Replication::slaveControl("START");
$qStart = Replication::slaveControl("START", null, DatabaseInterface::CONNECT_USER);

$result = ($qStop !== false && $qStop !== -1 &&
$qSkip !== false && $qSkip !== -1 &&
Expand Down

0 comments on commit 774fc68

Please sign in to comment.