diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-03-03 19:31:01 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-03-03 19:31:01 +0200 |
commit | e70b22e55c5756a8318c07ab337a1c31acf1aa86 (patch) | |
tree | c9c5aff16956b040c42f44d96cb69c6c44097284 /sql/ha_innodb.cc | |
parent | 9ca8f13734d103a44f1653ef7bf1a3ae2747e750 (diff) | |
download | mariadb-git-e70b22e55c5756a8318c07ab337a1c31acf1aa86.tar.gz |
ha_innodb.h, ha_innodb.cc, handler.h, handler.cc, sql_class.cc:
Fix a hang on the adaptive hash S-latch if an application program uses mysql_use_result() and performs queries on two connections at the same time
sql/sql_class.cc:
Fix a hang on the adaptive hash S-latch if an application program uses mysql_use_result() and performs queries on two connections at the same time
sql/handler.cc:
Fix a hang on the adaptive hash S-latch if an application program uses mysql_use_result() and performs queries on two connections at the same time
sql/handler.h:
Fix a hang on the adaptive hash S-latch if an application program uses mysql_use_result() and performs queries on two connections at the same time
sql/ha_innodb.cc:
Fix a hang on the adaptive hash S-latch if an application program uses mysql_use_result() and performs queries on two connections at the same time
sql/ha_innodb.h:
Fix a hang on the adaptive hash S-latch if an application program uses mysql_use_result() and performs queries on two connections at the same time
Diffstat (limited to 'sql/ha_innodb.cc')
-rw-r--r-- | sql/ha_innodb.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index b5962526d9e..1c6de24ed75 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -151,6 +151,19 @@ innobase_release_stat_resources( } /************************************************************************ +Call this function when mysqld passes control to the client. That is to +avoid deadlocks on the adaptive hash S-latch possibly held by thd. For more +documentation, see handler.cc. */ + +void +innobase_release_temporary_latches( +/*===============================*/ + void* innobase_tid) +{ + innobase_release_stat_resources((trx_t*)innobase_tid); +} + +/************************************************************************ Increments innobase_active_counter and every INNOBASE_WAKE_INTERVALth time calls srv_active_wake_master_thread. This function should be used when a single database operation may introduce a small need for |