diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-05-31 16:54:16 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-05-31 16:54:16 -0600 |
commit | a28d5ad9d0ecf2d8421a779009f51e3bf6f321e6 (patch) | |
tree | f54d6a699dbe1eddbfa675e0e458c325605d4fe2 /sql/sql_repl.cc | |
parent | 14dba1af96b96f4954c1197e64831f56ba5fa7b7 (diff) | |
download | mariadb-git-a28d5ad9d0ecf2d8421a779009f51e3bf6f321e6.tar.gz |
fixed bug in CHANGE MASTER TO
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index 3af757993b5..7ddf04f1b9a 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -684,14 +684,18 @@ int change_master(THD* thd) // if we change host or port, we must reset the postion glob_mi.log_file_name[0] = 0; glob_mi.pos = 4; // skip magic number + glob_mi.pending = 0; } if(lex_mi->log_file_name) strmake(glob_mi.log_file_name, lex_mi->log_file_name, sizeof(glob_mi.log_file_name)); if(lex_mi->pos) + { glob_mi.pos = lex_mi->pos; - + glob_mi.pending = 0; + } + if(lex_mi->host) { strmake(glob_mi.host, lex_mi->host, sizeof(glob_mi.host)); |