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:
@ -289,9 +289,7 @@ bool RWSplitSession::route_single_stmt(GWBUF* querybuf)
|
|||||||
|
|
||||||
if (!succp && should_migrate_trx(target))
|
if (!succp && should_migrate_trx(target))
|
||||||
{
|
{
|
||||||
MXS_INFO("Starting transaction migration from '%s' to '%s'",
|
MXS_INFO("Migrating transaction to '%s'", target->name());
|
||||||
m_current_master->name(),
|
|
||||||
target->name());
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stash the current query so that the transaction replay treats
|
* Stash the current query so that the transaction replay treats
|
||||||
|
Reference in New Issue
Block a user