Fixed databases being queried without a username or password and ignored the default databases when checking for shards.

This commit is contained in:
Markus Makela
2014-12-07 13:14:34 +02:00
parent 15a96f037d
commit 0348df5147
2 changed files with 36 additions and 32 deletions

View File

@ -31,6 +31,7 @@
#include <dcb.h>
#include <hashtable.h>
#include <mysql_client_server_protocol.h>
#undef PREP_STMT_CACHING
@ -248,6 +249,7 @@ struct router_client_session {
SPINLOCK rses_lock; /*< protects rses_deleted */
int rses_versno; /*< even = no active update, else odd. not used 4/14 */
bool rses_closed; /*< true when closeSession is called */
MYSQL_session* rses_mysql_session;
/** Properties listed by their type */
rses_property_t* rses_properties[RSES_PROP_TYPE_COUNT];
backend_ref_t* rses_master_ref;