Commit f037b910 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-17726: Fix compiler warning

Compare against the correct constant 0. NOT_KILLED belongs to
enum killed_state, while THD_IS_NOT_KILLED is what we want.
parent ab812c10
......@@ -13202,7 +13202,7 @@ int ha_innobase::delete_table(const char* name)
table, FOREIGN KEY constraints will be ignored and their
metadata will not be removed. */
DBUG_ASSERT(sqlcom != SQLCOM_TRUNCATE
|| (thd_kill_level(ha_thd()) != NOT_KILLED
|| (thd_kill_level(ha_thd()) != THD_IS_NOT_KILLED
&& (!m_prebuilt
|| m_prebuilt->table->is_temporary())));
return delete_table(name, sqlcom);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment