~jaypipes/drizzle/explicit-transaction

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Jay Pipes
  • Date: 2010-02-17 17:22:32 UTC
  • Revision ID: jpipes@serialcoder-20100217172232-7fzl13h9kqvucu4h
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:
1368
1368
    engine= plugin::StorageEngine::findByName(name);
1369
1369
    if (engine == NULL)
1370
1370
    {
1371
 
      errmsg_printf(ERRMSG_LVL_ERROR, _("Unknown/unsupported table type: %s"),
1372
 
                    default_storage_engine_str);
1373
 
      unireg_abort(1);
1374
 
    }
1375
 
    if (!engine->is_enabled())
1376
 
    {
1377
 
      errmsg_printf(ERRMSG_LVL_ERROR, _("Default storage engine (%s) is not available"),
1378
 
                    default_storage_engine_str);
1379
 
      unireg_abort(1);
1380
 
      //assert(global_system_variables.storage_engine);
1381
 
    }
1382
 
    else
1383
 
    {
1384
 
      /*
1385
 
        Need to unlock as global_system_variables.storage_engine
1386
 
        was acquired during plugin_init()
1387
 
      */
1388
 
      global_system_variables.storage_engine= engine;
1389
 
    }
 
1371
      errmsg_printf(ERRMSG_LVL_ERROR, _("Unknown/unsupported storage engine: %s"),
 
1372
                    default_storage_engine_str);
 
1373
      unireg_abort(1);
 
1374
    }
 
1375
    global_system_variables.storage_engine= engine;
1390
1376
  }
1391
1377
 
1392
1378
  if (plugin::XaStorageEngine::recoverAllXids(0))