=== modified file 'sql/log.cc'
|
--- sql/log.cc 2014-08-02 19:26:16 +0000
|
+++ sql/log.cc 2014-09-18 15:16:51 +0000
|
@@ -1400,7 +1400,12 @@ bool LOGGER::activate_log_handler(THD* t
|
{
|
MYSQL_QUERY_LOG *file_log;
|
bool res= FALSE;
|
+ DEBUG_SYNC(thd, "activate_log_handler");
|
lock_exclusive();
|
+ DBUG_EXECUTE_IF("activate_log_handler",
|
+ {
|
+ debug_sync_set_action(thd, STRING_WITH_LEN("now SIGNAL ready3"));
|
+ };);
|
switch (log_type) {
|
case QUERY_LOG_SLOW:
|
if (!opt_slow_log)
|
|
=== modified file 'sql/sql_acl.cc'
|
--- sql/sql_acl.cc 2014-08-02 19:26:16 +0000
|
+++ sql/sql_acl.cc 2014-09-18 15:18:52 +0000
|
@@ -53,6 +53,7 @@
|
#include "sql_array.h"
|
|
#include "sql_plugin_compat.h"
|
+#include "debug_sync.h"
|
|
bool mysql_user_table_is_in_short_password_format= false;
|
|
@@ -4142,8 +4143,13 @@ bool mysql_grant(THD *thd, const char *d
|
if (!revoke_grant)
|
create_new_users= test_if_create_new_users(thd);
|
|
+ DEBUG_SYNC(thd, "mysql_grant");
|
/* go through users in user_list */
|
mysql_rwlock_wrlock(&LOCK_grant);
|
+ DBUG_EXECUTE_IF("mysql_grant",
|
+ {
|
+ debug_sync_set_action(thd, STRING_WITH_LEN("now SIGNAL ready1"));
|
+ };);
|
mysql_mutex_lock(&acl_cache->lock);
|
grant_version++;
|
|
@@ -9225,7 +9231,12 @@ bool acl_authenticate(THD *thd, uint con
|
if (!acl_proxy_user)
|
{
|
if (!thd->is_error())
|
+ {
|
+ debug_sync_set_action(thd, STRING_WITH_LEN("now SIGNAL go1 WAIT_FOR ready1"));
|
+ debug_sync_set_action(thd, STRING_WITH_LEN("now SIGNAL go2"));
|
+ debug_sync_set_action(thd, STRING_WITH_LEN("now SIGNAL go3 WAIT_FOR ready3"));
|
login_failed_error(thd);
|
+ }
|
mysql_mutex_unlock(&acl_cache->lock);
|
DBUG_RETURN(1);
|
}
|
|
=== modified file 'sql/sql_show.cc'
|
--- sql/sql_show.cc 2014-08-31 17:55:11 +0000
|
+++ sql/sql_show.cc 2014-09-18 15:07:47 +0000
|
@@ -4244,6 +4244,7 @@ static int fill_schema_table_from_frm(TH
|
key_length= create_table_def_key(thd, key, &table_list, 0);
|
hash_value= my_calc_hash(&table_def_cache, (uchar*) key, key_length);
|
mysql_mutex_lock(&LOCK_open);
|
+ DEBUG_SYNC(thd, "fill_schema_table_from_frm");
|
share= get_table_share(thd, &table_list, key,
|
key_length, OPEN_VIEW, ¬_used, hash_value);
|
if (!share)
|