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

Function kill_threads_for_user

sql/sql_parse.cc:9271–9286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9269
9270
9271static uint kill_threads_for_user(THD *thd, LEX_USER *user,
9272 killed_state kill_signal, ha_rows *rows)
9273{
9274 kill_threads_callback_arg arg(thd, user, kill_signal);
9275 DBUG_ENTER("kill_threads_for_user");
9276 DBUG_PRINT("enter", ("user: %s signal: %u", user->user.str,
9277 (uint) kill_signal));
9278
9279 *rows= 0;
9280
9281 if (server_threads.iterate(kill_threads_callback, &arg))
9282 DBUG_RETURN(ER_KILL_DENIED_ERROR);
9283
9284 *rows= arg.counter;
9285 DBUG_RETURN(0);
9286}
9287
9288
9289/**

Callers 1

sql_kill_userFunction · 0.85

Calls 1

iterateMethod · 0.45

Tested by

no test coverage detected