MXS-2068: Use RWBackend in schemarouter

The schemarouter now uses the RWBackend to track the response states. This
fixes the debug assertions that happened with the mxs1113_schemarouter_ps
test.
This commit is contained in:
Markus Mäkelä
2018-09-25 12:51:13 +03:00
parent 24b438c9b6
commit 548d121699
3 changed files with 57 additions and 61 deletions

View File

@ -30,6 +30,7 @@
#include <maxscale/pcre2.h>
#include <maxscale/service.h>
#include <maxscale/backend.hh>
#include <maxscale/protocol/rwbackend.hh>
namespace schemarouter
{
@ -96,12 +97,12 @@ struct Stats
*
* Owned by router client session.
*/
class SRBackend : public mxs::Backend
class SRBackend : public mxs::RWBackend
{
public:
SRBackend(SERVER_REF* ref)
: mxs::Backend(ref)
: mxs::RWBackend(ref)
, m_mapped(false)
{
}