Merge branch '2.3' into develop
This commit is contained in:
@ -901,7 +901,7 @@ static int gw_read_and_write(DCB* dcb)
|
||||
if (proto->ignore_replies > 0)
|
||||
{
|
||||
/** The reply to a COM_CHANGE_USER is in packet */
|
||||
GWBUF* query = proto->stored_query;
|
||||
GWBUF* query = modutil_get_next_MySQL_packet(&proto->stored_query);
|
||||
proto->stored_query = NULL;
|
||||
proto->ignore_replies--;
|
||||
mxb_assert(proto->ignore_replies >= 0);
|
||||
|
@ -514,7 +514,8 @@ bool RWSplitSession::route_session_write(GWBUF* querybuf, uint8_t command, uint3
|
||||
}
|
||||
}
|
||||
|
||||
if (m_config.max_sescmd_history > 0 && m_sescmd_list.size() > m_config.max_sescmd_history)
|
||||
if (m_config.max_sescmd_history > 0 && m_sescmd_list.size() >= m_config.max_sescmd_history
|
||||
&& !m_config.prune_sescmd_history)
|
||||
{
|
||||
static bool warn_history_exceeded = true;
|
||||
if (warn_history_exceeded)
|
||||
@ -537,7 +538,7 @@ bool RWSplitSession::route_session_write(GWBUF* querybuf, uint8_t command, uint3
|
||||
}
|
||||
|
||||
if (m_config.prune_sescmd_history && !m_sescmd_list.empty()
|
||||
&& m_sescmd_list.size() + 1 > m_config.max_sescmd_history)
|
||||
&& m_sescmd_list.size() >= m_config.max_sescmd_history)
|
||||
{
|
||||
// Close to the history limit, remove the oldest command
|
||||
prune_to_position(m_sescmd_list.front()->get_position());
|
||||
|
Reference in New Issue
Block a user