fixup 0bd9f755b MDEV-26062

Pass char* to WSREP_LOG and others, instead of non-POD objects
This commit is contained in:
Nikita Malyavin 2021-07-29 02:08:11 +03:00
parent 43099af95b
commit 9d5967f74b

View file

@ -2475,13 +2475,13 @@ row_upd_sec_index_entry(
case DB_LOCK_WAIT_TIMEOUT:
WSREP_DEBUG("Foreign key check fail: "
"%s on table %s index %s query %s",
ut_strerr(err), index->name, index->table->name,
ut_strerr(err), index->name(), index->table->name.m_name,
wsrep_thd_query(trx->mysql_thd));
break;
default:
WSREP_ERROR("Foreign key check fail: "
"%s on table %s index %s query %s",
ut_strerr(err), index->name, index->table->name,
ut_strerr(err), index->name(), index->table->name.m_name,
wsrep_thd_query(trx->mysql_thd));
break;
}
@ -2810,14 +2810,14 @@ check_fk:
case DB_LOCK_WAIT_TIMEOUT:
WSREP_DEBUG("Foreign key check fail: "
"%s on table %s index %s query %s",
ut_strerr(err), index->name, index->table->name,
ut_strerr(err), index->name(), index->table->name.m_name,
wsrep_thd_query(trx->mysql_thd));
goto err_exit;
default:
WSREP_ERROR("Foreign key check fail: "
"%s on table %s index %s query %s",
ut_strerr(err), index->name, index->table->name,
ut_strerr(err), index->name(), index->table->name.m_name,
wsrep_thd_query(trx->mysql_thd));
goto err_exit;
@ -3041,13 +3041,13 @@ row_upd_del_mark_clust_rec(
case DB_LOCK_WAIT_TIMEOUT:
WSREP_DEBUG("Foreign key check fail: "
"%d on table %s index %s query %s",
err, index->name, index->table->name,
err, index->name(), index->table->name.m_name,
wsrep_thd_query(trx->mysql_thd));
break;
default:
WSREP_ERROR("Foreign key check fail: "
"%d on table %s index %s query %s",
err, index->name, index->table->name,
err, index->name(), index->table->name.m_name,
wsrep_thd_query(trx->mysql_thd));
break;
}