~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Jay Pipes
  • Date: 2009-04-10 18:16:15 UTC
  • mto: (971.1.47 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: jpipes@serialcoder-20090410181615-k04cbtva3nwfpjz9
Removed old protobuf_replicator plugin, fixed up db.cc and other files to use new
TransactionServices interface, and put in a guard in the TransactionServices call
interfaces to do a no-op when either no replicators or appliers.

Next step: merge in the new filtered_replicator and transaction_log_writer plugins
from the other trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include <drizzled/sql_base.h>
43
43
#include <drizzled/show.h>
44
44
#include <drizzled/item/cmpfunc.h>
45
 
#include <drizzled/replicator.h>
 
45
#include <drizzled/transaction_services.h>
46
46
#include <drizzled/check_stack_overrun.h>
47
47
#include <drizzled/lock.h>
48
48
 
 
49
extern drizzled::TransactionServices transaction_services;
49
50
 
50
51
/**
51
52
  @defgroup Data_Dictionary Data Dictionary
2977
2978
        end= query;
2978
2979
        end+= sprintf(query, "DELETE FROM `%s`.`%s`", share->db.str,
2979
2980
                      share->table_name.str);
2980
 
        (void)replicator_statement(session, query, (size_t)(end - query));
 
2981
        transaction_services.rawStatement(session, query, (size_t)(end - query)); 
2981
2982
        free(query);
2982
2983
      }
2983
2984
      else