If max timeout is reached, it is printed in ms

pull/378/head
René Cannaò 11 years ago
parent 6fc9bb3dad
commit 6f821ce341

@ -972,7 +972,7 @@ handler_again:
if (mybe->server_myds->max_connect_time) {
if (thread->curtime >= mybe->server_myds->max_connect_time) {
char buf[256];
sprintf(buf,"Max connect timeout reached while reaching hostgroup %d : %llu", current_hostgroup, thread->curtime - CurrentQuery.start_time);
sprintf(buf,"Max connect timeout reached while reaching hostgroup %d after %llums", current_hostgroup, (thread->curtime - CurrentQuery.start_time)/1000 );
client_myds->myprot.generate_pkt_ERR(true,NULL,NULL,1,1045,(char *)"#28000",buf);
CurrentQuery.end();
mybe->server_myds->free_mysql_real_query();

Loading…
Cancel
Save