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

Method init_for_queries

sql/sql_class.cc:1548–1562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1546*/
1547
1548void THD::init_for_queries()
1549{
1550 DBUG_ASSERT(transaction->on);
1551 DBUG_ASSERT(m_transaction_psi == NULL);
1552
1553 /* Set time for --init-file queries */
1554 set_time();
1555 reset_root_defaults(mem_root, variables.query_alloc_block_size,
1556 variables.query_prealloc_size);
1557 reset_root_defaults(&transaction->mem_root,
1558 variables.trans_alloc_block_size,
1559 variables.trans_prealloc_size);
1560 DBUG_ASSERT(!transaction->xid_state.is_explicit_XA());
1561 DBUG_ASSERT(transaction->implicit_xid.is_null());
1562}
1563
1564
1565/*

Callers 7

prepare_for_fillFunction · 0.80
rpl_parallel.ccFile · 0.80
start_wsrep_THDFunction · 0.80
handle_slave_sqlFunction · 0.80
bootstrapFunction · 0.80
create_embedded_thdFunction · 0.80

Calls 3

reset_root_defaultsFunction · 0.85
is_explicit_XAMethod · 0.80
is_nullMethod · 0.45

Tested by

no test coverage detected