diff options
author | unknown <cbell/Chuck@mysql_cab_desk.> | 2007-03-29 08:38:06 -0400 |
---|---|---|
committer | unknown <cbell/Chuck@mysql_cab_desk.> | 2007-03-29 08:38:06 -0400 |
commit | 7e43b1f586142693a9b1ec1cf5ac92e6a38a3190 (patch) | |
tree | 6fc1cd4dc0594454f29bec81426bc3befce3e345 /sql/slave.cc | |
parent | 5de36f391f4d3f7fa75c0fdaf63f8469840c7b8b (diff) | |
parent | 75686dc73f0e2d5af85a9cd77fccbf2896189a42 (diff) | |
download | mariadb-git-7e43b1f586142693a9b1ec1cf5ac92e6a38a3190.tar.gz |
Merge mysql_cab_desk.:C:/source/c++/mysql-5.1-new-rpl
into mysql_cab_desk.:C:/source/c++/mysql-5.1_WL_3629
sql/slave.cc:
Auto merged
Diffstat (limited to 'sql/slave.cc')
-rw-r--r-- | sql/slave.cc | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 55a774fd747..7a928e0727a 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -2420,10 +2420,25 @@ Slave SQL thread aborted. Can't execute init_slave query"); /* Print any warnings issued */ List_iterator_fast<MYSQL_ERROR> it(thd->warn_list); MYSQL_ERROR *err; + /* + Added controlled slave thread cancel for replication + of user-defined variables. + */ + bool udf_error = false; while ((err= it++)) + { + if (err->code == ER_CANT_OPEN_LIBRARY) + udf_error = true; sql_print_warning("Slave: %s Error_code: %d",err->msg, err->code); - - sql_print_error("\ + } + if (udf_error) + sql_print_error("Error loading user-defined library, slave SQL " + "thread aborted. Install the missing library, and restart the " + "slave SQL thread with \"SLAVE START\". We stopped at log '%s' " + "position %s", RPL_LOG_NAME, llstr(rli->group_master_log_pos, + llbuff)); + else + sql_print_error("\ Error running query, slave SQL thread aborted. Fix the problem, and restart \ the slave SQL thread with \"SLAVE START\". We stopped at log \ '%s' position %s", RPL_LOG_NAME, llstr(rli->group_master_log_pos, llbuff)); |