MCPcopy Create free account
hub / github.com/MariaDB/server / get_net_wait_timeout

Method get_net_wait_timeout

sql/sql_class.h:6384–6404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 2

tp_callbackFunction · 0.80
do_commandFunction · 0.80

Calls 1

is_trx_read_writeMethod · 0.45

Tested by

no test coverage detected