MXS-2418: Crash on trx replay when log_info is enabled

If the session starts with no master but later one becomes available, when
a transaction is started the code would unconditionally use the master's
name in a log message.
This commit is contained in:
Markus Mäkelä 2019-04-02 17:22:26 +03:00
parent cd732ac14f
commit 2dfd7d35ac
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -289,9 +289,7 @@ bool RWSplitSession::route_single_stmt(GWBUF* querybuf)
if (!succp && should_migrate_trx(target))
{
MXS_INFO("Starting transaction migration from '%s' to '%s'",
m_current_master->name(),
target->name());
MXS_INFO("Migrating transaction to '%s'", target->name());
/**
* Stash the current query so that the transaction replay treats