diff options
| author | Marc Alff <marc.alff@sun.com> | 2009-12-09 20:19:51 -0700 |
|---|---|---|
| committer | Marc Alff <marc.alff@sun.com> | 2009-12-09 20:19:51 -0700 |
| commit | e33a8b2a1a254271d99b6c5f00097fd0d89adb90 (patch) | |
| tree | cc0a038191d1969182d5dd108c891ee10a436cc0 /sql/sql_trigger.cc | |
| parent | fd433cfb96adcbb013b27838cd80576dff92989d (diff) | |
| download | mariadb-git-e33a8b2a1a254271d99b6c5f00097fd0d89adb90.tar.gz | |
WL#2360 Performance schema
Part III: mysys instrumentation
Diffstat (limited to 'sql/sql_trigger.cc')
| -rw-r--r-- | sql/sql_trigger.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc index ecbb6473ec4..c895239064b 100644 --- a/sql/sql_trigger.cc +++ b/sql/sql_trigger.cc @@ -387,7 +387,7 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create) !(need_start_waiting= !wait_if_global_read_lock(thd, 0, 1))) DBUG_RETURN(TRUE); - pthread_mutex_lock(&LOCK_open); + mysql_mutex_lock(&LOCK_open); if (!create) { @@ -510,7 +510,7 @@ end: write_bin_log(thd, TRUE, stmt_query.ptr(), stmt_query.length()); } - pthread_mutex_unlock(&LOCK_open); + mysql_mutex_unlock(&LOCK_open); if (need_start_waiting) start_waiting_global_read_lock(thd); @@ -1884,7 +1884,7 @@ bool Table_triggers_list::change_table_name(THD *thd, const char *db, old_table)-(char*)&key[0])+1; if (!is_table_name_exclusively_locked_by_this_thread(thd, key, key_length)) - safe_mutex_assert_owner(&LOCK_open); + mysql_mutex_assert_owner(&LOCK_open); #endif DBUG_ASSERT(my_strcasecmp(table_alias_charset, db, new_db) || |
