~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/qcache.cc

Fixed -Wmissing-declarations

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
  }
163
163
};
164
164
 
165
 
} /* namespace query_cache */
166
 
} /* namespace drizzled */
167
 
 
168
 
using namespace drizzled::query_cache;
169
 
 
170
165
/*
171
166
  Following functions:
172
167
 
173
 
    drizzle_qcache_try_fetch_and_send();
174
 
    drizzle_qcache_set();
175
 
    drizzle_qcache_invalidate_table();
176
 
    drizzle_qcache_invalidate_db();
177
 
    drizzle_qcache_flush();
 
168
    try_fetch_and_send();
 
169
    set();
 
170
    invalidate_table();
 
171
    invalidate_db();
 
172
    flush();
178
173
 
179
174
  are the entry points to the query cache plugin that is called by the
180
175
  rest of the Drizzle server code.
181
176
*/
182
177
 
183
 
bool drizzle_qcache_try_fetch_and_send(Session *session, bool transactional)
 
178
bool try_fetch_and_send(Session *session, bool transactional)
184
179
{
185
180
  /* Use find_if instead of foreach so that we can collect return codes */
186
181
  vector<QueryCache *>::iterator iter=
193
188
  return iter != all_query_cache.end();
194
189
}
195
190
 
196
 
bool drizzle_qcache_set(Session *session, bool transactional)
 
191
bool set(Session *session, bool transactional)
197
192
{
198
193
  /* Use find_if instead of foreach so that we can collect return codes */
199
194
  vector<QueryCache *>::iterator iter=
206
201
  return iter != all_query_cache.end();
207
202
}
208
203
 
209
 
bool drizzle_qcache_invalidate_table(Session *session, bool transactional)
 
204
bool invalidate_table(Session *session, bool transactional)
210
205
{
211
206
  /* Use find_if instead of foreach so that we can collect return codes */
212
207
  vector<QueryCache *>::iterator iter=
219
214
  return iter != all_query_cache.end();
220
215
}
221
216
 
222
 
bool drizzle_qcache_invalidate_db(Session *session, const char *dbname,
223
 
                                  bool transactional)
 
217
bool invalidate_db(Session *session, const char *dbname,
 
218
                                         bool transactional)
224
219
{
225
220
  /* Use find_if instead of foreach so that we can collect return codes */
226
221
  vector<QueryCache *>::iterator iter=
233
228
  return iter != all_query_cache.end();
234
229
}
235
230
 
236
 
bool drizzle_qcache_flush(Session *session)
 
231
bool flush(Session *session)
237
232
{
238
233
  /* Use find_if instead of foreach so that we can collect return codes */
239
234
  vector<QueryCache *>::iterator iter=
245
240
   */
246
241
  return iter != all_query_cache.end();
247
242
}
 
243
 
 
244
} /* namespace query_cache */
 
245
} /* namespace drizzled */
 
246