~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Monty Taylor
  • Date: 2008-12-08 10:42:44 UTC
  • mfrom: (667 drizzle)
  • mto: This revision was merged to the branch mainline in revision 670.
  • Revision ID: monty@inaugust.com-20081208104244-fan1pe90li9df3ym
MergedĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <drizzled/session.h>
28
28
#include <drizzled/sql_base.h>
29
29
#include <drizzled/db.h>
 
30
#include <drizzled/replicator.h>
30
31
 
31
32
extern HASH lock_db_cache;
32
33
 
261
262
    file
262
263
*/
263
264
 
264
 
void write_bin_log(Session *session, bool clear_error,
265
 
                   char const *query, ulong query_length)
 
265
void write_bin_log(Session *session, bool,
 
266
                   char const *query, size_t query_length)
266
267
{
267
 
  if (drizzle_bin_log.is_open())
268
 
  {
269
 
    if (clear_error)
270
 
      session->clear_error();
271
 
    session->binlog_query(Session::STMT_QUERY_TYPE,
272
 
                      query, query_length, false, false);
273
 
  }
 
268
  (void)replicator_statement(session, query, query_length);
274
269
}
275
270
 
276
271