Merge remote-tracking branch 'origin/Z3' into MAX-237

Conflicts:
	query_classifier/query_classifier.cc
	query_classifier/query_classifier.h
	server/modules/routing/readwritesplit/readwritesplit.c
This commit is contained in:
Markus Makela
2014-09-01 11:05:10 +03:00
46 changed files with 3473 additions and 331 deletions

View File

@ -512,7 +512,15 @@ static skygw_query_type_t resolve_query_type(
}
else if (lex->option_type == OPT_SESSION)
{
type |= QUERY_TYPE_SESSION_WRITE;
/** SHOW commands are all reads to one backend */
if (lex->sql_command == SQLCOM_SHOW_VARIABLES)
{
type |= QUERY_TYPE_SESSION_READ;
}
else
{
type |= QUERY_TYPE_SESSION_WRITE;
}
goto return_qtype;
}
/**
@ -542,7 +550,6 @@ static skygw_query_type_t resolve_query_type(
}
}
goto return_qtype;
}