Index: mysql-5.7.5-m15/sql/ha_ndbcluster_binlog.cc =================================================================== --- mysql-5.7.5-m15.orig/sql/ha_ndbcluster_binlog.cc +++ mysql-5.7.5-m15/sql/ha_ndbcluster_binlog.cc @@ -7585,7 +7585,7 @@ restart_cluster_failure: { DBUG_PRINT("error", ("Failed to write to ndb_binlog_index at shutdown, retrying")); mysql_mutex_lock(&thd->LOCK_thd_data); - volatile THD::killed_state killed= thd->killed; + THD::killed_state killed= thd->killed; /* We are cleaning up, allow for flushing last epoch */ thd->killed= THD::NOT_KILLED; /* also clear error from last failing write */