23#include <drizzled/identifier.h>
24#include <drizzled/kill.h>
25#include <drizzled/session.h>
26#include <drizzled/session/cache.h>
30bool kill(
const identifier::User& user, session_id_t id_to_kill,
bool only_kill_query)
32 drizzled::Session::shared_ptr session_param= session::Cache::find(id_to_kill);
34 if (session_param and session_param->
isViewable(user))
36 session_param->awake(only_kill_query ? Session::KILL_QUERY : Session::KILL_CONNECTION);
bool isViewable(const identifier::User &) const
A set of Session members describing the current authenticated user.
TODO: Rename this file - func.h is stupid.