~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/logging.cc

  • Committer: Monty Taylor
  • Date: 2009-04-03 00:08:24 UTC
  • mto: (971.1.10 mordred)
  • mto: This revision was merged to the branch mainline in revision 978.
  • Revision ID: mordred@inaugust.com-20090403000824-goykwnwkgxkzqoau
Made all_logging static - not that it matters since it's gonna become a member variable one day.
Fixed a comment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
using namespace std;
26
26
 
27
 
vector<Logging_handler *> all_loggers;
 
27
static vector<Logging_handler *> all_loggers;
28
28
 
29
29
static void add_logger(Logging_handler *handler)
30
30
{
115
115
    unary_function<Logging_handler *, bool>(),
116
116
    session(session_arg) {}
117
117
 
118
 
  /* This gets called by plugin_foreach once for each loaded logging plugin */
 
118
  /* This gets called once for each loaded logging plugin */
119
119
  inline result_type operator()(argument_type handler)
120
120
  {
121
121
    if (handler->post(session))
136
136
   This gets called by the rest of the Drizzle server code */
137
137
bool logging_pre_do (Session *session)
138
138
{
139
 
  /* Usr find_if instead of foreach so that we can collect return codes */
 
139
  /* Use find_if instead of foreach so that we can collect return codes */
140
140
  vector<Logging_handler *>::iterator iter=
141
141
    find_if(all_loggers.begin(), all_loggers.end(),
142
142
            LoggingPreIterate(session)); 
151
151
   This gets called by the rest of the Drizzle server code */
152
152
bool logging_post_do (Session *session)
153
153
{
154
 
  /* Usr find_if instead of foreach so that we can collect return codes */
 
154
  /* Use find_if instead of foreach so that we can collect return codes */
155
155
  vector<Logging_handler *>::iterator iter=
156
156
    find_if(all_loggers.begin(), all_loggers.end(),
157
157
            LoggingPreIterate(session));