27#include <drizzled/atomics.h>
28#include <drizzled/message/transaction.pb.h>
29#include <drizzled/identifier.h>
30#include <drizzled/message/schema.h>
31#include <drizzled/message/table.h>
32#include <drizzled/session.h>
45 static const size_t DEFAULT_RECORD_SIZE= 100;
85 const unsigned char *old_record,
86 const unsigned char *new_record);
118 message::schema::const_reference schema);
130 const message::Schema &old_schema,
131 const message::Schema &new_schema);
154 message::table::const_reference table,
188 static int rollbackTransaction(
Session&,
bool all);
295 static void allocateNewTransactionId();
404 const unsigned char *old_record,
405 const unsigned char *new_record,
406 uint32_t *next_segment_id);
420 const unsigned char *old_record,
421 const unsigned char *new_record);
480 const unsigned char *old_record,
481 const unsigned char *new_record);
515 static uint64_t getCurrentTransactionId(
Session&);
static bool insertRecord(Session &, Table &in_table)
static bool sendShutdownEvent(Session &)
static void rawStatement(Session &, const std::string &query, const std::string &schema)
static bool shouldConstructMessages()
static void finalizeStatementMessage(message::Statement &, Session &)
static void setUpdateHeader(message::Statement &, const Session &, Table &, const unsigned char *old_record, const unsigned char *new_record)
static int commitTransaction(Session &, bool all)
static void createTable(Session &, const message::Table &)
static message::Statement & getInsertStatement(Session &, Table &, uint32_t *next_segment_id)
static void registerResourceForStatement(Session &, plugin::MonitoredInTransaction *, plugin::TransactionalStorageEngine *)
static void initStatementMessage(message::Statement &, message::Statement::Type type, const Session &)
static message::Statement & getDeleteStatement(Session &, Table &, uint32_t *next_segment_id)
static message::Transaction * segmentTransactionMessage(Session &, message::Transaction *)
static bool isFieldUpdated(Field *current_field, Table &, const unsigned char *old_record, const unsigned char *new_record)
static int commitPhaseOne(Session &, bool all)
static void setDeleteHeader(message::Statement &, const Session &, Table &)
static int commitTransactionMessage(Session &)
static void rollbackStatementMessage(Session &)
static void registerResourceForTransaction(Session &, plugin::MonitoredInTransaction *, plugin::TransactionalStorageEngine *)
static void deleteRecord(Session &, Table &, bool use_update_record=false)
static void truncateTable(Session &, Table &)
static void alterSchema(Session &, const message::Schema &old_schema, const message::Schema &new_schema)
static void dropSchema(Session &, const identifier::Schema &identifier, message::schema::const_reference schema)
static void createSchema(Session &, const message::Schema &schema)
static void cleanupTransactionMessage(message::Transaction *transaction, Session &)
static void setInsertHeader(message::Statement &, const Session &, Table &)
static void rollbackTransactionMessage(Session &)
static void initTransactionMessage(message::Transaction &, Session &, bool should_inc_trx_id)
static int setSavepoint(Session &, NamedSavepoint &sv)
static bool sendStartupEvent(Session &)
static message::Transaction * getActiveTransactionMessage(Session &, bool should_inc_trx_id=true)
static message::Statement & getUpdateStatement(Session &, Table &, const unsigned char *old_record, const unsigned char *new_record, uint32_t *next_segment_id)
static void updateRecord(Session &, Table &, const unsigned char *old_record, const unsigned char *new_record)
static int autocommitOrRollback(Session &, int error)
static void dropTable(Session &, const identifier::Table &identifier, message::table::const_reference table, bool if_exists)
static int sendEvent(Session &, const message::Event &event)
static void finalizeTransactionMessage(message::Transaction &, const Session &)
Convert from decimal to binary representation.
TODO: Rename this file - func.h is stupid.
Visibility Control Macros.