Statistics: Server crashes in mysql_lock_merge if use_stat_tables is enabled and ANALYZE and ALTER TABLE are executed under lock

Description

bzr version-info

Reproducible with MyISAM, Aria, InnoDB, MEMORY.
Not reproducible with use_stat_tables = NEVER.

Test case:

Environment

None

Assignee

Igor Babaev

Reporter

Elena Stepanova

Labels

None

Fix versions

Priority

Major
Configure