title: MySQL "LOCK TABLES" timeout?
body: <p>What's the timeout for mysql LOCK TABLES statement?</p>
  
  <p>Can't find it anywhere.</p>
  
  <p>I tried to set variable innodb_lock_wait_timeout ini my.cnf but it seems it's related to another (row level) locking not to table locking.</p>
  
  <p>Simply it has no effect for LOCK TABLES.</p>
  
  <p>I want to set some low timeout value for case of deadlock, because if some operation will LOCK tables and something will go wrong, it will hang up the whole site!</p>
  
  <p>Which is stupid for example in case of finishing purchase on your site.</p>