Made RWSplit to use slave selection criteria also during client session. Previously the criteria was use when slaves were selected for use of client session.

This commit is contained in:
VilhoRaatikka
2014-11-17 13:40:18 +02:00
parent 4f136fa4d2
commit c9b679359f
3 changed files with 152 additions and 73 deletions

View File

@ -1867,14 +1867,13 @@ void protocol_add_srv_command(
/** add to the end of list */
p->protocol_command.scom_next = server_command_init(NULL, cmd);
}
#if defined(EXTRA_SS_DEBUG)
LOGIF(LT, (skygw_log_write(
LOGFILE_TRACE,
"Added command %s to fd %d.",
STRPACKETTYPE(cmd),
p->owner_dcb->fd)));
#if defined(EXTRA_SS_DEBUG)
c = &p->protocol_command;
while (c != NULL && c->scom_cmd != MYSQL_COM_UNDEFINED)
@ -1905,13 +1904,13 @@ void protocol_remove_srv_command(
server_command_t* s;
spinlock_acquire(&p->protocol_lock);
s = &p->protocol_command;
#if defined(EXTRA_SS_DEBUG)
LOGIF(LT, (skygw_log_write(
LOGFILE_TRACE,
"Removed command %s from fd %d.",
STRPACKETTYPE(s->scom_cmd),
p->owner_dcb->fd)));
#endif
if (s->scom_next == NULL)
{
p->protocol_command.scom_cmd = MYSQL_COM_UNDEFINED;