|
|
|
|
@ -792,6 +792,7 @@ handler_again:
|
|
|
|
|
__sync_fetch_and_add(&parent->queries_sent,1);
|
|
|
|
|
__sync_fetch_and_add(&parent->bytes_sent,query.length);
|
|
|
|
|
myds->sess->thread->status_variables.queries_backends_bytes_sent+=query.length;
|
|
|
|
|
myds->bytes_info.bytes_sent += query.length;
|
|
|
|
|
if (myds->sess->with_gtid == true) {
|
|
|
|
|
__sync_fetch_and_add(&parent->queries_gtid_sync,1);
|
|
|
|
|
}
|
|
|
|
|
@ -823,6 +824,7 @@ handler_again:
|
|
|
|
|
__sync_fetch_and_add(&parent->queries_sent,1);
|
|
|
|
|
__sync_fetch_and_add(&parent->bytes_sent,query.length);
|
|
|
|
|
myds->sess->thread->status_variables.queries_backends_bytes_sent+=query.length;
|
|
|
|
|
myds->bytes_info.bytes_sent += query.length;
|
|
|
|
|
if (async_exit_status) {
|
|
|
|
|
next_event(ASYNC_STMT_PREPARE_CONT);
|
|
|
|
|
} else {
|
|
|
|
|
@ -855,6 +857,7 @@ handler_again:
|
|
|
|
|
__sync_fetch_and_add(&parent->queries_sent,1);
|
|
|
|
|
__sync_fetch_and_add(&parent->bytes_sent,query.stmt_meta->size);
|
|
|
|
|
myds->sess->thread->status_variables.queries_backends_bytes_sent+=query.stmt_meta->size;
|
|
|
|
|
myds->bytes_info.bytes_sent += query.stmt_meta->size;
|
|
|
|
|
if (async_exit_status) {
|
|
|
|
|
next_event(ASYNC_STMT_EXECUTE_CONT);
|
|
|
|
|
} else {
|
|
|
|
|
@ -917,6 +920,7 @@ handler_again:
|
|
|
|
|
}
|
|
|
|
|
__sync_fetch_and_add(&parent->bytes_recv,total_size);
|
|
|
|
|
myds->sess->thread->status_variables.queries_backends_bytes_recv+=total_size;
|
|
|
|
|
myds->bytes_info.bytes_recv += total_size;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
@ -1039,6 +1043,7 @@ handler_again:
|
|
|
|
|
unsigned int br=MyRS->add_row(mysql_row);
|
|
|
|
|
__sync_fetch_and_add(&parent->bytes_recv,br);
|
|
|
|
|
myds->sess->thread->status_variables.queries_backends_bytes_recv+=br;
|
|
|
|
|
myds->bytes_info.bytes_recv += br;
|
|
|
|
|
processed_bytes+=br; // issue #527 : this variable will store the amount of bytes processed during this event
|
|
|
|
|
if (
|
|
|
|
|
(processed_bytes > (unsigned int)mysql_thread___threshold_resultset_size*8)
|
|
|
|
|
|