| 6382 | } |
| 6383 | |
| 6384 | uint get_net_wait_timeout() |
| 6385 | { |
| 6386 | if (in_active_multi_stmt_transaction()) |
| 6387 | { |
| 6388 | if (transaction->all.is_trx_read_write()) |
| 6389 | { |
| 6390 | if (variables.idle_write_transaction_timeout > 0) |
| 6391 | return variables.idle_write_transaction_timeout; |
| 6392 | } |
| 6393 | else |
| 6394 | { |
| 6395 | if (variables.idle_readonly_transaction_timeout > 0) |
| 6396 | return variables.idle_readonly_transaction_timeout; |
| 6397 | } |
| 6398 | |
| 6399 | if (variables.idle_transaction_timeout > 0) |
| 6400 | return variables.idle_transaction_timeout; |
| 6401 | } |
| 6402 | |
| 6403 | return uint(variables.net_wait_timeout); |
| 6404 | } |
| 6405 | |
| 6406 | /** |
| 6407 | Switch to a sublex, to parse a substatement or an expression. |
no test coverage detected