From 63358fb4c1ebfb7ccee3c8d2945083380f7a1561 Mon Sep 17 00:00:00 2001 From: Esa Korhonen Date: Fri, 4 Jan 2019 17:53:38 +0200 Subject: [PATCH] Add correct operator to comparison The clause had a bitwise AND. The end result is likely the same. --- server/modules/routing/schemarouter/schemaroutersession.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/modules/routing/schemarouter/schemaroutersession.cc b/server/modules/routing/schemarouter/schemaroutersession.cc index aa6f2332c..f17fcc9a3 100644 --- a/server/modules/routing/schemarouter/schemaroutersession.cc +++ b/server/modules/routing/schemarouter/schemaroutersession.cc @@ -1393,8 +1393,7 @@ void SchemaRouterSession::query_databases() for (SSRBackendList::iterator it = m_backends.begin(); it != m_backends.end(); it++) { - if ((*it)->in_use() && !(*it)->is_closed() - & server_is_usable((*it)->backend()->server)) + if ((*it)->in_use() && !(*it)->is_closed() && server_is_usable((*it)->backend()->server)) { GWBUF* clone = gwbuf_clone(buffer); MXS_ABORT_IF_NULL(clone);