Deadlock between CREATE/DROP FUNCTION and SELECT from view

Description

2 threads required to reproduce deadlock:
thread1: CREATE/DROP FUNCTION
thread2: SELECT * FROM view having references to UDF/SP

mtr test case:

Should not affect 10.0.

Environment

None

Assignee

Sergey Vojtovich

Reporter

Sergey Vojtovich

Labels

None

Fix versions

Affects versions

Priority

Major
Configure