summaryrefslogtreecommitdiff
path: root/storage/innobase/lock
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-03-14 09:33:38 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-03-16 15:50:05 +0200
commit61e192fa40f85e219f9ab42d2f47bd5633ca8ff1 (patch)
tree3fc6ff963f546edd45b92e7d64ee205a6836bf5d /storage/innobase/lock
parent27d4333cb9f7ab7c6738bdfe0aea79a63dc62a51 (diff)
downloadmariadb-git-61e192fa40f85e219f9ab42d2f47bd5633ca8ff1.tar.gz
lock_reset_lock_and_trx_wait(): Remove diagnostics
Diffstat (limited to 'storage/innobase/lock')
-rw-r--r--storage/innobase/lock/lock0lock.cc40
1 files changed, 2 insertions, 38 deletions
diff --git a/storage/innobase/lock/lock0lock.cc b/storage/innobase/lock/lock0lock.cc
index 731b6ef5ed0..900ea4f91ed 100644
--- a/storage/innobase/lock/lock0lock.cc
+++ b/storage/innobase/lock/lock0lock.cc
@@ -643,44 +643,8 @@ lock_reset_lock_and_trx_wait(
{
ut_ad(lock_get_wait(lock));
ut_ad(lock_mutex_own());
-
- if (lock->trx->lock.wait_lock &&
- lock->trx->lock.wait_lock != lock) {
- const char* stmt=NULL;
- const char* stmt2=NULL;
- size_t stmt_len;
- trx_id_t trx_id = 0;
- stmt = lock->trx->mysql_thd
- ? innobase_get_stmt_unsafe(
- lock->trx->mysql_thd, &stmt_len)
- : NULL;
-
- if (lock->trx->lock.wait_lock &&
- lock->trx->lock.wait_lock->trx) {
- trx_id = lock->trx->lock.wait_lock->trx->id;
- stmt2 = lock->trx->lock.wait_lock->trx->mysql_thd
- ? innobase_get_stmt_unsafe(
- lock->trx->lock.wait_lock
- ->trx->mysql_thd, &stmt_len)
- : NULL;
- }
-
- ib::error() <<
- "Trx id " << ib::hex(lock->trx->id)
- << " is waiting a lock "
- << " for this trx id " << ib::hex(trx_id)
- << " wait_lock " << lock->trx->lock.wait_lock;
- if (stmt) {
- ib::info() << " SQL1: " << stmt;
- }
-
- if (stmt2) {
- ib::info() << " SQL2: " << stmt2;
- }
-
- ut_ad(0);
- }
-
+ ut_ad(lock->trx->lock.wait_lock == NULL
+ || lock->trx->lock.wait_lock == lock);
lock->trx->lock.wait_lock = NULL;
lock->type_mode &= ~LOCK_WAIT;
}