Comment 1 for bug 1374930

Revision history for this message
zhai weixiang (zhaiwx1987) wrote :

A simple patch to prove the problem..

$svn diff sql/threadpool_unix.cc
Index: sql/threadpool_unix.cc
===================================================================
--- sql/threadpool_unix.cc (revision 7085)
+++ sql/threadpool_unix.cc (working copy)
@@ -444,7 +444,8 @@

   return (mode == TP_HIGH_PRIO_MODE_STATEMENTS) ||
     (mode == TP_HIGH_PRIO_MODE_TRANSACTIONS &&
- c->tickets > 0 && thd_is_transaction_active(c->thd));
+ c->tickets > 0 && thd_is_transaction_active(c->thd)) ||
+ c->thd->global_read_lock.is_acquired();
 }

 } // namespace