From ff2462f2d2fb552e34c4e00bfda137de3fcfb04e Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Sat, 9 May 2015 11:25:18 +0300 Subject: [PATCH] Fix to MXS-127:https://mariadb.atlassian.net/browse/MXS-127 Corrected the wrong session commands being deleted. --- server/modules/routing/readwritesplit/readwritesplit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index 3739eb054..b9beb80d0 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -4384,7 +4384,7 @@ static bool route_session_write( if(BREF_IS_IN_USE(bref)) { - if(bref->bref_sescmd_cur.position <= prop->rses_prop_data.sescmd.position) + if(bref->bref_sescmd_cur.position <= prop->rses_prop_data.sescmd.position + 1) { conflict = true; break;