This PR addresses the issue of compatibility with older applications that use 'SHOW SLAVE STATUS' to retrieve the replication status, like MaxScale.
The approach is intercepting the request and modify it to 'SHOW REPLICA STATUS' before sending to real backend. And then it add a result modifier to change the terms in resultset schema to the old fashion ones before sending back to client.
Before
mysql> SHOW SLAVE STATUS;
ERROR 1105 (HY000): syntax error at position 11 near 'SLAVE'
This PR addresses the issue of compatibility with older applications that use 'SHOW SLAVE STATUS' to retrieve the replication status, like MaxScale.
The approach is intercepting the request and modify it to 'SHOW REPLICA STATUS' before sending to real backend. And then it add a result modifier to change the terms in resultset schema to the old fashion ones before sending back to client.
Before
After
And the resultset of
SHOW REPLICA STATUS
remains what it should be: