Bug #56780 | docs don't match code for table_lock_wait_timeout | ||
---|---|---|---|
Submitted: | 14 Sep 2010 21:24 | Modified: | 15 Sep 2010 7:08 |
Reporter: | Mark Callaghan | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: General | Severity: | S4 (Feature request) |
Version: | 5.1.47 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | table_lock_wait_timeout |
[14 Sep 2010 21:24]
Mark Callaghan
[14 Sep 2010 21:47]
Davi Arnaut
IIRC, it is really "unused" (dead code actually). can_deadlock is true only when there are non-materialized cursors, which in turn was never fully implemented and is dead code. The whole stuff was removed in 5.5.
[14 Sep 2010 22:10]
Mark Callaghan
Can we convert this to a feature request? I want a variable that lets me specify a timeout for the amount of time a thread blocks in open_tables -> open_table -> wait_for_condition. For example, if ALTER TABLE is running then any session that tries to use that table gets stuck there. Even if wait_for_condition is changed to use a pthread_cond_timedwait, then the thread gets stuck in the loop open_tables->open_table->wait_for_condition. So I need both a timed wait in wait_for_condition and changes in open_tables to know when the timeout has expired. I also need faith that nothing is broken when very complex code is changed. Oh, and I have a patch that probably implements this. The patch is trivial. Faith that that change is correct is not.
[14 Sep 2010 23:05]
Sveta Smirnova
See also bug #41949
[14 Sep 2010 23:10]
Sveta Smirnova
Mark, please check if variable lock_wait_timeout in version 5.5 satisfy your needs. Link to the user manual: http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_lock_wait_timeo...
[14 Sep 2010 23:27]
Mark Callaghan
That would work if it were used in my case. I assume it does. But I won't download 5.5 to confirm.