~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_functions/kill.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-12-03 19:16:09 UTC
  • mto: (1975.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1976.
  • Revision ID: osullivan.padraig@gmail.com-20101203191609-7s81iwt33vrgmz9v
Some re-factoring based on feedback from Monty on IRC.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
 
21
#include "config.h"
22
22
 
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/session/cache.h>
25
 
#include <plugin/utility_functions/functions.h>
 
25
#include "plugin/utility_functions/functions.h"
26
26
 
27
27
namespace drizzled
28
28
{
48
48
    return 0;
49
49
  }
50
50
 
51
 
  if (not die_session->isViewable(*getSession().user()))
 
51
  if (not die_session->isViewable())
52
52
  {
53
53
    my_error(drizzled::ER_KILL_DENIED_ERROR, session_id_for_kill, MYF(0));
54
54
    return 0;