~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

Remove StorageEngine::start_consitent_snapshot() and StorageEngine::enable(), disable() and is_enabled(). Unused.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
StorageEngine::StorageEngine(const string name_arg,
73
73
                                     const bitset<HTON_BIT_SIZE> &flags_arg)
74
74
    : Plugin(name_arg, "StorageEngine"),
75
 
      enabled(true),
76
75
      flags(flags_arg),
77
 
      slot(0)
 
76
      slot(total_ha++)
78
77
{
79
 
  if (enabled)
80
 
  {
81
 
    slot= total_ha++;
82
 
  }
83
78
  pthread_mutex_init(&proto_cache_mutex, NULL);
84
79
}
85
80
 
269
264
  */
270
265
  inline result_type operator() (argument_type engine)
271
266
  {
272
 
    if (engine->is_enabled() && (*session->getEngineData(engine)))
 
267
    if (*session->getEngineData(engine))
273
268
      engine->close_connection(session);
274
269
  }
275
270
};
301
296
  }
302
297
  else
303
298
  {
304
 
    if ((!engine->is_enabled()) ||
305
 
        (engine->flush_logs()))
 
299
    if (engine->flush_logs())
306
300
      return true;
307
301
  }
308
302
  return false;
594
588
    }
595
589
  }
596
590
 
597
 
  if (! share.storage_engine->is_enabled())
598
 
  {
599
 
    error= HA_ERR_UNSUPPORTED;
600
 
    goto err2;
601
 
  }
602
 
 
603
 
 
604
591
  {
605
592
    char name_buff[FN_REFLEN];
606
593
    const char *table_name_arg;
631
618
 
632
619
Cursor *StorageEngine::getCursor(TableShare &share, memory::Root *alloc)
633
620
{
634
 
  assert(enabled);
635
621
  return create(share, alloc);
636
622
}
637
623