~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging.cc

  • Committer: Brian Aker
  • Date: 2010-12-02 21:58:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1973.
  • Revision ID: brian@tangent.org-20101202215809-761e1wk2nhyuvt9r
This is from the catalog patch (I'm pushing it up as its own little thing
just because it is fairly invasive).

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
bool plugin::Logging::preDo(Session *session)
151
151
{
152
152
  /* Use find_if instead of foreach so that we can collect return codes */
153
 
  vector<plugin::Logging *>::iterator iter=
 
153
  std::vector<plugin::Logging *>::iterator iter=
154
154
    find_if(all_loggers.begin(), all_loggers.end(),
155
155
            PreIterate(session)); 
156
156
  /* If iter is == end() here, that means that all of the plugins returned
165
165
bool plugin::Logging::postDo(Session *session)
166
166
{
167
167
  /* Use find_if instead of foreach so that we can collect return codes */
168
 
  vector<plugin::Logging *>::iterator iter=
 
168
  std::vector<plugin::Logging *>::iterator iter=
169
169
    find_if(all_loggers.begin(), all_loggers.end(),
170
170
            PostIterate(session)); 
171
171
  /* If iter is == end() here, that means that all of the plugins returned
179
179
bool plugin::Logging::postEndDo(Session *session)
180
180
{
181
181
  /* Use find_if instead of foreach so that we can collect return codes */
182
 
  vector<plugin::Logging *>::iterator iter=
 
182
  std::vector<plugin::Logging *>::iterator iter=
183
183
    find_if(all_loggers.begin(), all_loggers.end(),
184
184
            PostEndIterate(session));
185
185
  /* If iter is == end() here, that means that all of the plugins returned
192
192
/* Resets global stats for logging plugin */
193
193
bool plugin::Logging::resetStats(Session *session)
194
194
{
195
 
  vector<plugin::Logging *>::iterator iter=
 
195
  std::vector<plugin::Logging *>::iterator iter=
196
196
    find_if(all_loggers.begin(), all_loggers.end(),
197
197
            ResetIterate(session));
198
198