diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-10-05 13:18:18 -0600 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-10-05 13:18:18 -0600 |
commit | 9def70036f82bc3d9338b1584226451bbe88ab96 (patch) | |
tree | e86eb32a57800dd314cb337a50b592f4d440331b /sql/slave.cc | |
parent | 80f52d455182c1f7997b69dca335e1149224c32e (diff) | |
download | mariadb-git-9def70036f82bc3d9338b1584226451bbe88ab96.tar.gz |
fixed crash on slave when master aborts a query that has % in it.
mysql-test/t/rpl000001.test:
test for coredump on slave while trying to print aborted query
sql/slave.cc:
do not coredump printing aborted query if it has % in it.
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/slave.cc')
-rw-r--r-- | sql/slave.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 5836ac441e1..b550b849a09 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -862,7 +862,7 @@ point. If you are sure that your master is ok, run this query manually on the\ slave and then restart the slave with SET SQL_SLAVE_SKIP_COUNTER=1;\ SLAVE START;", thd->query); last_slave_errno = expected_error; - sql_print_error(last_slave_error); + sql_print_error("%s",last_slave_error); return 1; default: return 0; |