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:
parent
cd732ac14f
commit
2dfd7d35ac
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user