|
|
|
|
@ -1531,8 +1531,15 @@ handler_again:
|
|
|
|
|
}
|
|
|
|
|
if (rows_read_inner > 1) {
|
|
|
|
|
process_rows_in_ASYNC_STMT_EXECUTE_STORE_RESULT_CONT(processed_bytes);
|
|
|
|
|
|
|
|
|
|
bool suspend_resultset_fetch = (processed_bytes > (unsigned int)mysql_thread___threshold_resultset_size * 8);
|
|
|
|
|
|
|
|
|
|
if (suspend_resultset_fetch == true && myds->sess && myds->sess->qpo && myds->sess->qpo->cache_ttl > 0) {
|
|
|
|
|
suspend_resultset_fetch = (processed_bytes > ((uint64_t)mysql_thread___query_cache_size_MB) * 1024ULL * 1024ULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
(processed_bytes > (unsigned int)mysql_thread___threshold_resultset_size*8)
|
|
|
|
|
suspend_resultset_fetch
|
|
|
|
|
||
|
|
|
|
|
( mysql_thread___throttle_ratio_server_to_client && mysql_thread___throttle_max_bytes_per_second_to_client && (processed_bytes > (unsigned long long)mysql_thread___throttle_max_bytes_per_second_to_client/10*(unsigned long long)mysql_thread___throttle_ratio_server_to_client) )
|
|
|
|
|
) {
|
|
|
|
|
@ -1738,8 +1745,15 @@ handler_again:
|
|
|
|
|
myds->bytes_info.bytes_recv += br;
|
|
|
|
|
bytes_info.bytes_recv += br;
|
|
|
|
|
processed_bytes+=br; // issue #527 : this variable will store the amount of bytes processed during this event
|
|
|
|
|
|
|
|
|
|
bool suspend_resultset_fetch = (processed_bytes > (unsigned int)mysql_thread___threshold_resultset_size * 8);
|
|
|
|
|
|
|
|
|
|
if (suspend_resultset_fetch == true && myds->sess && myds->sess->qpo && myds->sess->qpo->cache_ttl > 0) {
|
|
|
|
|
suspend_resultset_fetch = (processed_bytes > ((uint64_t)mysql_thread___query_cache_size_MB) * 1024ULL * 1024ULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
(processed_bytes > (unsigned int)mysql_thread___threshold_resultset_size*8)
|
|
|
|
|
suspend_resultset_fetch
|
|
|
|
|
||
|
|
|
|
|
( mysql_thread___throttle_ratio_server_to_client && mysql_thread___throttle_max_bytes_per_second_to_client && (processed_bytes > (unsigned long long)mysql_thread___throttle_max_bytes_per_second_to_client/10*(unsigned long long)mysql_thread___throttle_ratio_server_to_client) )
|
|
|
|
|
) {
|
|
|
|
|
|