From 5ea3000d4777b86d9e91dee303a11c4cb4cc1032 Mon Sep 17 00:00:00 2001 From: "guilhem@gbichot2.local" <> Date: Mon, 26 Jan 2004 19:39:00 +0100 Subject: [PATCH] fix for BUG#2516: "SLAVE START may crash mysqld" --- sql/sql_yacc.yy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index d4cbd01dc17..4dbd7519fbd 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -1823,7 +1823,6 @@ opt_to: /* SLAVE START and SLAVE STOP are deprecated. We keep them for compatibility. - To use UNTIL, one must use START SLAVE, not SLAVE START. */ slave: @@ -1848,7 +1847,11 @@ slave: LEX *lex=Lex; lex->sql_command = SQLCOM_SLAVE_START; lex->type = 0; - } + /* We'll use mi structure for UNTIL options */ + bzero((char*) &lex->mi, sizeof(lex->mi)); + } + slave_until + {} | SLAVE STOP_SYM slave_thread_opts { LEX *lex=Lex;