In MySQL, when does the master send a query to the slaves?
Here's a specific scenario that I'm trying to understand.
- Admin entered an update on master that took a long time to execute.
- Admin hits Ctrl-C to stop the query.
I see four scenarios that may have happened:
- Nothing happened on the slave, because master waits until the query is finished executing before it sends the query to the slave.
- A huge update happened on the slave, because the master passed the query along immediately, and didn't pass the
^C
along to the slave. - The same update happened on the slave as the master, because the master passed the query along immediately, and also passed the
^C
along to the slave. - The same updates happened on the slave as the master, because the master passed each individual update along to the slave.
Which one of these actually happened?