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

Function get_priority

sql/threadpool_common.cc:216–224  ·  view source on GitHub ↗

Determine connection priority , using current transaction state and 'threadpool_priority' variable value. */

Source from the content-addressed store, hash-verified

214 transaction state and 'threadpool_priority' variable value.
215*/
216static TP_PRIORITY get_priority(TP_connection *c)
217{
218 DBUG_ASSERT(c->thd == current_thd);
219 TP_PRIORITY prio= (TP_PRIORITY)c->thd->variables.threadpool_priority;
220 if (prio == TP_PRIORITY_AUTO)
221 prio= c->thd->transaction->is_active() ? TP_PRIORITY_HIGH : TP_PRIORITY_LOW;
222
223 return prio;
224}
225
226
227void tp_callback(TP_connection *c)

Callers 1

tp_callbackFunction · 0.85

Calls 1

is_activeMethod · 0.45

Tested by

no test coverage detected