~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

Re-org'd the replication stuff into slots.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
using namespace drizzled;
40
40
 
41
 
extern drizzled::ReplicationServices replication_services;
42
 
 
43
41
#define MY_DB_OPT_FILE "db.opt"
44
42
#define MAX_DROP_TABLE_Q_LEN      1024
45
43
 
190
188
 
191
189
bool mysql_create_db(Session *session, const char *db, HA_CREATE_INFO *create_info)
192
190
{
 
191
  ReplicationServices &replication_services= ReplicationServices::singleton();
193
192
  char   path[FN_REFLEN+16];
194
193
  long result= 1;
195
194
  int error_erno;
277
276
 
278
277
bool mysql_alter_db(Session *session, const char *db, HA_CREATE_INFO *create_info)
279
278
{
 
279
  ReplicationServices &replication_services= ReplicationServices::singleton();
280
280
  long result=1;
281
281
  int error= 0;
282
282
  char   path[FN_REFLEN+16];
420
420
      query= session->query;
421
421
      query_length= session->query_length;
422
422
    }
 
423
    ReplicationServices &replication_services= ReplicationServices::singleton();
423
424
    replication_services.rawStatement(session, session->getQueryString(), session->getQueryLength());
424
425
    session->clear_error();
425
426
    session->server_status|= SERVER_STATUS_DB_DROPPED;
438
439
    query_end= query + MAX_DROP_TABLE_Q_LEN;
439
440
    db_len= strlen(db);
440
441
 
 
442
    ReplicationServices &replication_services= ReplicationServices::singleton();
441
443
    for (tbl= dropped_tables; tbl; tbl= tbl->next_local)
442
444
    {
443
445
      uint32_t tbl_name_len;