1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-29748 ASAN errors or server crash in File_parser::parse upon concurrent view operations

Read the version of the view share when we read definition to prevent
simultaniouse access to a view table SHARE (and so its MEM_ROOT)
from different threads.
This commit is contained in:
Oleksandr Byelkin
2022-10-12 15:59:46 +02:00
parent e00ea301ef
commit 4fd6dd2d3b
3 changed files with 16 additions and 14 deletions

View File

@ -64,4 +64,6 @@ extern const LEX_CSTRING view_type;
void make_valid_column_names(List<Item> &item_list);
bool mariadb_view_version_get(TABLE_SHARE *share);
#endif /* SQL_VIEW_INCLUDED */