fill_temporary_tables() does not protect thd->temporary_tables access with LOCK_temporary_tables
Bug #1223335 reported by
Laurynas Biveinis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
int fill_temporary_
{
...
TABLE *tmp;
for (tmp=thd-
if (store_
DBUG_
}
}
DBUG_RETURN(0);
}
It needs to hold thd->LOCK_
tags: | added: i-s-temp-tables |
To post a comment you must log in.
The whole point of introducing LOCK_temporary_ tables was to protect reads in fill_global_ temporary_ tables( ) from concurrent thd->temporary_ tables modifications in other threads.
Since fill_temporary_ tables( ) is only used to read the current connection's list of temporary tables, no concurrent modifications are possible. Thus the bug is invalid.