~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/logging_stats.cc

  • Committer: patrick crews
  • Date: 2010-11-09 22:42:49 UTC
  • mfrom: (1919.1.3 trunk)
  • Revision ID: gleebix@gmail.com-20101109224249-668v10rbz17tqwnw
Rollup merge of Andrew's patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
  scoreboard_slot->getStatusVars()->logStatusVar(session);
138
138
}
139
139
 
 
140
bool LoggingStats::resetGlobalScoreboard()
 
141
{
 
142
  cumulative_stats->getGlobalStatusVars()->reset();
 
143
 
 
144
  vector<vector<ScoreboardSlot* >* > *vector_of_scoreboard_vectors=
 
145
    current_scoreboard->getVectorOfScoreboardVectors();
 
146
 
 
147
  vector<vector<ScoreboardSlot* >* >::iterator v_of_scoreboard_v_begin_it= vector_of_scoreboard_vectors->begin();
 
148
 
 
149
  vector<vector<ScoreboardSlot* >* >::iterator v_of_scoreboard_v_end_it= vector_of_scoreboard_vectors->end();
 
150
 
 
151
  for (; v_of_scoreboard_v_begin_it != v_of_scoreboard_v_end_it; ++v_of_scoreboard_v_begin_it)
 
152
  {
 
153
    vector<ScoreboardSlot* > *scoreboard_vector= *v_of_scoreboard_v_begin_it;
 
154
 
 
155
    vector<ScoreboardSlot* >::iterator scoreboard_vector_it= scoreboard_vector->begin();
 
156
    vector<ScoreboardSlot* >::iterator scoreboard_vector_end= scoreboard_vector->end();
 
157
    for (; scoreboard_vector_it != scoreboard_vector_end; ++scoreboard_vector_it)
 
158
    {
 
159
      ScoreboardSlot *scoreboard_slot= *scoreboard_vector_it;
 
160
      if (scoreboard_slot->isInUse())
 
161
      {
 
162
        scoreboard_slot->getStatusVars()->reset();
 
163
      }
 
164
    }
 
165
  }
 
166
 
 
167
  return false;
 
168
}
 
169
 
140
170
bool LoggingStats::post(Session *session)
141
171
{
142
172
  if (! isEnabled() || (session->getSessionId() == 0))