summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-11-22 14:40:38 +0200
committerunknown <monty@hundin.mysql.fi>2001-11-22 14:40:38 +0200
commite673b6dcf8b55ec4457ab554a1c09ccf3c079463 (patch)
treeed7b5ac619c61e789b26d5243f8391f68a3fa04a /innobase
parentd576cd65d00d23b634e0ef4254660e67c055c045 (diff)
parent7ef7d93726929ec678a8b07bed1be7bb56ad4b10 (diff)
downloadmariadb-git-e673b6dcf8b55ec4457ab554a1c09ccf3c079463.tar.gz
merge
BitKeeper/etc/logging_ok: auto-union Docs/manual.texi: Auto merged innobase/srv/srv0srv.c: Auto merged myisam/mi_check.c: Auto merged myisam/mi_open.c: Auto merged myisam/mi_packrec.c: Auto merged myisam/myisamdef.h: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/t/fulltext.test: Auto merged sql/stacktrace.c: Auto merged sql/mysql_priv.h: Auto merged sql/sql_base.cc: Auto merged sql/sql_update.cc: Auto merged
Diffstat (limited to 'innobase')
-rw-r--r--innobase/srv/srv0srv.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c
index 7f90c295b41..424bb8a7086 100644
--- a/innobase/srv/srv0srv.c
+++ b/innobase/srv/srv0srv.c
@@ -2153,10 +2153,14 @@ loop:
/* Timeout exceeded or a wrap-around in system
time counter: cancel the lock request queued
by the transaction and release possible
- other transactions waiting behind */
-
- lock_cancel_waiting_and_release(
- thr_get_trx(slot->thr)->wait_lock);
+ other transactions waiting behind; it is
+ possible that the lock has already been
+ granted: in that case do nothing */
+
+ if (thr_get_trx(slot->thr)->wait_lock) {
+ lock_cancel_waiting_and_release(
+ thr_get_trx(slot->thr)->wait_lock);
+ }
}
}
}