Merge branch '2.3' into 2.4

This commit is contained in:
Markus Mäkelä
2020-07-24 08:01:53 +03:00
3 changed files with 24 additions and 10 deletions

View File

@ -16,14 +16,17 @@ then
echo "deb http://mirror.netinch.com/pub/mariadb/repo/10.3/ubuntu/ ${UBUNTU_CODENAME} main" > mariadb.list echo "deb http://mirror.netinch.com/pub/mariadb/repo/10.3/ubuntu/ ${UBUNTU_CODENAME} main" > mariadb.list
sudo cp mariadb.list /etc/apt/sources.list.d/ sudo cp mariadb.list /etc/apt/sources.list.d/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xF1656F24C74CD1D8 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xF1656F24C74CD1D8
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update sudo apt-get update
sudo apt-get install -y --force-yes \ sudo -E apt-get -q -o Dpkg::Options::=--force-confold \
git wget build-essential \ -o Dpkg::Options::=--force-confdef \
libssl-dev mariadb-client php perl \ -y --force-yes \
coreutils libjansson-dev zlib1g-dev \ install \
mariadb-test python python-pip cmake \ git wget build-essential \
libpam0g-dev libsqlite3-dev \ libssl-dev mariadb-client php perl \
libcurl4-gnutls-dev coreutils libjansson-dev zlib1g-dev \
mariadb-test python python-pip cmake libpam0g-dev \
libsqlite3-dev libcurl4-gnutls-dev
sudo apt-get install -y --force-yes openjdk-8-jdk sudo apt-get install -y --force-yes openjdk-8-jdk
sudo apt-get install -y --force-yes php-mysql sudo apt-get install -y --force-yes php-mysql
if [ $? != 0 ] if [ $? != 0 ]

View File

@ -96,6 +96,7 @@ int ThrottleSession::real_routeQuery(GWBUF* buffer, bool is_delayed)
MXS_NOTICE("Query throttling Session %ld user %s, throttling limit reached. Disconnect.", MXS_NOTICE("Query throttling Session %ld user %s, throttling limit reached. Disconnect.",
m_pSession->ses_id, m_pSession->ses_id,
m_pSession->client_dcb->user); m_pSession->client_dcb->user);
gwbuf_free(buffer);
return false; // disconnect return false; // disconnect
} }
} }

View File

@ -553,9 +553,19 @@ bool RWSplitSession::route_session_write(GWBUF* querybuf, uint8_t command, uint3
} }
else else
{ {
MXS_ERROR("Failed to execute session command in %s (%s)", backend->close();
backend->name(),
backend->uri()); if (m_config.master_failure_mode == RW_FAIL_INSTANTLY && backend == m_current_master)
{
MXS_ERROR("Failed to execute session command in Master: %s (%s)",
backend->name(), backend->uri());
return false;
}
else
{
MXS_ERROR("Failed to execute session command in %s (%s)",
backend->name(), backend->uri());
}
} }
} }
} }