summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorLuis Soares <luis.soares@sun.com>2010-02-10 16:01:31 +0000
committerLuis Soares <luis.soares@sun.com>2010-02-10 16:01:31 +0000
commit7d213e8314d210e7ef975a9743f2dfa38ff1f6a6 (patch)
tree912b2d6400869607c582535593820f78cb2eb992 /sql/sp.cc
parent9ba558302bbe95595c10175d34d4bf733da76fd7 (diff)
downloadmariadb-git-7d213e8314d210e7ef975a9743f2dfa38ff1f6a6.tar.gz
BUG#51021: current_stmt_binlog_row_based not removed in next-mr
Deployed DBUG_ASSERT before the conditional binlog format restore.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index de379e7e725..aae825c6c0d 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -1136,6 +1136,7 @@ done:
close_thread_tables(thd);
/* Restore the state of binlog format */
+ DBUG_ASSERT(!thd->is_current_stmt_binlog_format_row());
if (save_binlog_row_based)
thd->set_current_stmt_binlog_format_row();
DBUG_RETURN(ret);
@@ -1195,6 +1196,7 @@ sp_drop_routine(THD *thd, int type, sp_name *name)
close_thread_tables(thd);
/* Restore the state of binlog format */
+ DBUG_ASSERT(!thd->is_current_stmt_binlog_format_row());
if (save_binlog_row_based)
thd->set_current_stmt_binlog_format_row();
DBUG_RETURN(ret);
@@ -1271,6 +1273,7 @@ sp_update_routine(THD *thd, int type, sp_name *name, st_sp_chistics *chistics)
close_thread_tables(thd);
/* Restore the state of binlog format */
+ DBUG_ASSERT(!thd->is_current_stmt_binlog_format_row());
if (save_binlog_row_based)
thd->set_current_stmt_binlog_format_row();
DBUG_RETURN(ret);