~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to sql/sql_audit.cc

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-04-16 20:07:10 UTC
  • mto: (1.3.9 vivid-proposed)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20150416200710-pcrsa022082zj46k
Tags: upstream-5.6.24
ImportĀ upstreamĀ versionĀ 5.6.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
 
1
/* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
   This program is free software; you can redistribute it and/or modify
4
4
   it under the terms of the GNU General Public License as published by
120
120
  general_class_handler, connection_class_handler
121
121
};
122
122
 
 
123
#ifndef DBUG_OFF
123
124
static const uint audit_handlers_count=
124
125
  (sizeof(audit_handlers) / sizeof(audit_handler_t));
 
126
#endif /* DBUG_OFF */
125
127
 
126
128
 
127
129
/**
342
344
{
343
345
  st_mysql_audit *data= (st_mysql_audit*) plugin->plugin->info;
344
346
  
345
 
  if (!data->class_mask || !data->event_notify ||
346
 
      !data->class_mask[0])
 
347
  if (!data->event_notify || !data->class_mask[0])
347
348
  {
348
349
    sql_print_error("Plugin '%s' has invalid data.",
349
350
                    plugin->name.str);