summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@sun.com>2009-12-08 15:38:58 +0100
committerJon Olav Hauglid <jon.hauglid@sun.com>2009-12-08 15:38:58 +0100
commitc0b78cc47a2da2710cdf580ddbb3b31f5f691a23 (patch)
tree6595ffd465148362353e1da6a13474699e098db6 /sql/sql_class.h
parent302352723e8fbf69b9d02604c84a79fa56e69b7b (diff)
downloadmariadb-git-c0b78cc47a2da2710cdf580ddbb3b31f5f691a23.tar.gz
Backport of revno: 2617.65.10
Bug #45067 Assertion `stmt_da->is_error()' in Delayed_insert::open_and_lock_table The assert was triggered when delayed insert was killed by another connection using mysql_notify_thread_having_shared_lock(). During handling of thd->killed, thd.fatal_error() was called without a previous call to my_error() which triggered the assert. This patch allows the assert to pass if thd->killed has been set.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 67fa6306283..f4504bfed0d 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -2216,7 +2216,7 @@ public:
*/
inline void fatal_error()
{
- DBUG_ASSERT(main_da.is_error());
+ DBUG_ASSERT(stmt_da->is_error() || killed);
is_fatal_error= 1;
DBUG_PRINT("error",("Fatal error set"));
}