~tsarev/percona-server/quilt-5.5-2

Viewing all changes in revision 137.

  • Committer: Alexey Kopytov
  • Date: 2011-07-06 08:42:49 UTC
  • Revision ID: akopytov@gmail.com-20110706084249-z83d8gepn845mn90
Bug #745241: quering global_temporary_tables causes server crash

The problem was in an insufficient locking in
fill_global_temporary_tables(). Iterating thread's temporary_tables list
could lead to race conditions, because other server code assumes that
list to only be accessed by a single (the current) thread at any time.

Fixed by introducing a new mutex in THD protecting the temporary_tables
list and acquiring that mutex when modifying the list or in
fill_global_temporary_tables().

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: