1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Undoing 2 parts of changeset 1.1730.1.1 :

- the one about BUG#2921
- the one about relay log flushing
Both will be rewritten in a next changeset
(this one will not be pushed before the next changeset).
This commit is contained in:
guilhem@mysql.com
2004-03-10 16:30:47 +01:00
parent 7738d08294
commit 30541b324c
6 changed files with 22 additions and 48 deletions

View File

@@ -1015,10 +1015,10 @@ int change_master(THD* thd, MASTER_INFO* mi)
If we don't write new coordinates to disk now, then old will remain in
relay-log.info until START SLAVE is issued; but if mysqld is shutdown
before START SLAVE, then old will remain in relay-log.info, and will be the
in-memory value at restart (thus causing errors, as the old relay log
does not exist anymore).
in-memory value at restart (thus causing errors, as the old relay log does
not exist anymore).
*/
flush_relay_log_info(&mi->rli, 0);
flush_relay_log_info(&mi->rli);
pthread_cond_broadcast(&mi->data_cond);
pthread_mutex_unlock(&mi->rli.data_lock);