summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2015-07-19 22:51:19 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2015-07-19 22:51:19 -0400
commitaf2f7ce3f915c4686ef04294b00c6f4885503f5e (patch)
tree847912a00f5026519bcc76df32f45eb234bd7352 /sql/wsrep_mysqld.cc
parent71d1f35847a575239deff856590bf6f13afd74ed (diff)
downloadmariadb-git-af2f7ce3f915c4686ef04294b00c6f4885503f5e.tar.gz
MDEV-8464 : ALTER VIEW not replicated in some cases
In galera, like other DDLs, CREATE/ALTER VIEW commands are recreated and replicated during parsing. The ALGORITHM clause is internally set to VIEW_ALGORITHM_INHERIT if its not explicitly specified by the user. But since its not a valid type to be used in a command, it leads to an assertion failure. The solution is to not include the ALGORITHM clause in the command if its not explicitly specified (or INHERIT).
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index ef804fb7c5f..340ff3233e7 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -1193,7 +1193,7 @@ create_view_query(THD *thd, uchar** buf, size_t* buf_len)
views->view_suid = lex->create_view_suid;
views->with_check = lex->create_view_check;
- view_store_options(thd, views, &buff);
+ view_store_options4(thd, views, &buff, true);
buff.append(STRING_WITH_LEN("VIEW "));
/* Test if user supplied a db (ie: we did not use thd->db) */
if (views->db && views->db[0] &&