Skip to content

Commit

Permalink
MDEV-8617: Multiple galera tests failures with --ps-protocol
Browse files Browse the repository at this point in the history
(Additional fixes in 10.0-galera branch)
* Reset THD's PS members before returning when node is
not ready.
* Update galera_suspend_slave.test
  • Loading branch information
Nirbhay Choubey committed Aug 14, 2015
1 parent 8a18bb9 commit e996304
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mysql-test/suite/galera/t/galera_suspend_slave.test
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
exit(0);
EOF

--error ER_UNKNOWN_COM_ERROR,ER_LOCK_WAIT_TIMEOUT
--error ER_UNKNOWN_COM_ERROR,ER_LOCK_WAIT_TIMEOUT,ER_LOCK_DEADLOCK
INSERT INTO t1 VALUES (1);

--echo Resuming node_2 ...
Expand Down
6 changes: 6 additions & 0 deletions sql/sql_parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,12 @@ bool do_command(THD *thd)
"WSREP has not yet prepared node for application use",
MYF(0));
thd->protocol->end_statement();

/* Performance Schema Interface instrumentation end */
MYSQL_END_STATEMENT(thd->m_statement_psi, thd->get_stmt_da());
thd->m_statement_psi= NULL;
thd->m_digest= NULL;

return_value= FALSE;
goto out;
}
Expand Down

0 comments on commit e996304

Please sign in to comment.