WL#6120: Change master without stopping slave

Affects: Server-5.7   —   Status: Complete

In order to add/alter an option using CHNAGE MASTER TO command, currently it is 
necessary to do a STOP SLAVE before CHANGE MASTER. This worklog relaxes this 
constraint. Lets look at the three scenarios below to understand more about this 
task.

1) BOTH IO AND SQL THREAD ARE STOPPED

   When both the slave threads are stopped, there will be no change in
   behaviour. The CHANGE MASTER command will behave as it does now.

2) IO THREAD IS STOPPED, SQL THREAD IS RUNNING

   In order to switch the I/O thread over to read from another master it is
   currently necessary to stop the SQL thread as well. This worklog implements
   support for re-directing the I/O thread to another master without having to
   stop the SQL thread first, wherever possible.

3) SQL THREAD IS STOPPED, IO THREAD IS RUNNING

   In order to CHANGE MASTER TO RELAY_LOG_FILE/RELAY_LOG_POS/MASTER_DELAY, we
   currently have to stop the SQL thread as well. This worklog will allow these
   CHANGE MASTER options without having to stop the IO thread, if possible.