~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 11:16:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310111626-o2ztahzlr63244mm
Remove unnecessary statement.h include

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <drizzled/identifier.h>
29
29
#include <drizzled/table.h>
30
30
#include <drizzled/session.h>
 
31
#include <drizzled/sql_base.h>
31
32
#include <drizzled/table/concurrent.h>
32
33
 
33
34
#include <drizzled/table/cache.h>
175
176
bool Cache::removeTable(Session *session, identifier::Table &identifier, uint32_t flags)
176
177
{
177
178
  const identifier::Table::Key &key(identifier.getKey());
178
 
  bool result= false; 
 
179
  bool result= false;
179
180
  bool signalled= false;
180
181
 
181
182
  for (;;)
265
266
            and then we retry another loop in the
266
267
            table::Cache::singleton().removeTable routine.
267
268
          */
268
 
          boost::xtime xt; 
269
 
          xtime_get(&xt, boost::TIME_UTC); 
270
 
          xt.sec += 10; 
 
269
          boost::xtime xt;
 
270
          xtime_get(&xt, boost::TIME_UTC);
 
271
          xt.sec += 10;
271
272
          boost_unique_lock_t scoped(table::Cache::singleton().mutex(), boost::adopt_lock_t());
272
273
          COND_refresh.timed_wait(scoped, xt);
273
274
          scoped.release();