diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2017-12-19 16:13:35 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2017-12-19 16:13:35 +0200 |
commit | 252e690c859b53c51c7eecf072f33dbaaa01bcdf (patch) | |
tree | bb93e2e92e120472906099718a541b6e71cb39ae /sql/sql_view.cc | |
parent | ce4cdfa0f8691f47366d50acd6049b8cd7520e8a (diff) | |
download | mariadb-git-252e690c859b53c51c7eecf072f33dbaaa01bcdf.tar.gz |
Fix galera.view test case crash.
WSREP_TO_ISOLATION_BEGIN() call must be after view name is back
on tables list.
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 629dd865b0e..0f08883639a 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -425,11 +425,12 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views, if ((res= create_view_precheck(thd, tables, view, mode))) goto err; - WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL) lex->link_first_table_back(view, link_to_local); view->open_type= OT_BASE_ONLY; + WSREP_TO_ISOLATION_BEGIN(WSREP_MYSQL_DB, NULL, NULL) + /* ignore lock specs for CREATE statement */ |