In a MySQL MASTER MASTER scenario using InnoDB
When dropping an index on one instance will the same table on the other instance be available?
What is the sequence of activities?
I assume the following sequence:
- DROP INDEX on 1st instance
- Added to the binary log
- DROP INDEX on 2nd instance
Can anyone confirm?
I believe the following will happen:
DROP INDEX(which really runs anALTER TABLE ... DROP INDEX) runs on the masterThis means that the
ALTER TABLEon the other machine won’t start until theALTER TABLEhas successfully completed on the first (master) machine.While the
ALTER TABLEis running on either machine the table will be readable for a while and then neither readable/writeable as MySQL first makes a copy of the table internally then applies the changes.From http://dev.mysql.com/doc/refman/5.0/en/alter-table.html