// Note: negative reconnect means this rule doesn't change
// Note: negative reconnect means this rule doesn't change
proxy_debug(PROXY_DEBUG_MYSQL_QUERY_PROCESSOR,5,"query rule %d has set reconnect: %d. Query will%s be rexecuted if connection is lost\n",qr->rule_id,qr->reconnect,(qr->reconnect==0?" NOT":""));
ret->reconnect=qr->reconnect;
}
if(qr->timeout>=0){
// Note: negative timeout means this rule doesn't change
// Note: negative timeout means this rule doesn't change
proxy_debug(PROXY_DEBUG_MYSQL_QUERY_PROCESSOR,5,"query rule %d has set timeout: %d. Query will%s be interrupted if exceeding %dms\n",qr->rule_id,qr->timeout,(qr->timeout==0?" NOT":""),qr->timeout);
ret->timeout=qr->timeout;
}
@ -990,7 +990,7 @@ __internal_loop:
ret->retries=qr->retries;
}
if(qr->delay>=0){
// Note: negative delay means this rule doesn't change
// Note: negative delay means this rule doesn't change
proxy_debug(PROXY_DEBUG_MYSQL_QUERY_PROCESSOR,5,"query rule %d has set delay: %d. Session will%s be paused for %dms\n",qr->rule_id,qr->delay,(qr->delay==0?" NOT":""),qr->delay);
ret->delay=qr->delay;
}
@ -1020,7 +1020,7 @@ __internal_loop:
ret->OK_msg=strdup(qr->OK_msg);
}
if(qr->cache_ttl>=0){
// Note: negative TTL means this rule doesn't change
// Note: negative TTL means this rule doesn't change
proxy_debug(PROXY_DEBUG_MYSQL_QUERY_PROCESSOR,5,"query rule %d has set cache_ttl: %d. Query will%s hit the cache\n",qr->rule_id,qr->cache_ttl,(qr->cache_ttl==0?" NOT":""));
ret->cache_ttl=qr->cache_ttl;
}
@ -1040,7 +1040,7 @@ __internal_loop:
ret->log=qr->log;
}
if(qr->destination_hostgroup>=0){
// Note: negative hostgroup means this rule doesn't change
// Note: negative hostgroup means this rule doesn't change
proxy_debug(PROXY_DEBUG_MYSQL_QUERY_PROCESSOR,5,"query rule %d has set destination hostgroup: %d\n",qr->rule_id,qr->destination_hostgroup);