Drizzled Public API Documentation

ReplicationLog Class Reference
Inheritance diagram for ReplicationLog:
drizzled::plugin::TransactionApplier drizzled::plugin::Plugin

Public Types

typedef std::pair< const
std::string, const std::string > 
map_key
 
typedef std::map< const
map_key, plugin::Plugin * > 
map
 
typedef std::vector< Plugin * > vector
 

Public Member Functions

drizzled::plugin::ReplicationReturnCode apply (drizzled::Session &, const drizzled::message::Transaction &to_apply)
 
virtual void shutdownPlugin ()
 
virtual void prime ()
 
virtual void startup (drizzled::Session &)
 
void activate ()
 
void deactivate ()
 
bool isActive () const
 
const std::string & getName () const
 
void setModule (module::Module *module)
 
const std::string & getTypeName () const
 
virtual bool removeLast () const
 
const std::string & getModuleName () const
 

Static Public Member Functions

static void setup (ReplicationLog *, const std::string &)
 
static bool addPlugin (TransactionApplier *applier)
 
static void removePlugin (TransactionApplier *applier)
 

Detailed Description

Definition at line 27 of file replication_log.h.

Member Function Documentation

plugin::ReplicationReturnCode ReplicationLog::apply ( drizzled::Session in_session,
const drizzled::message::Transaction to_apply 
)
virtual

Apply something to a target.

Note

It is important to note that memory allocation for the supplied pointer is not guaranteed after the completion of this function – meaning the caller can dispose of the supplied message. Therefore, appliers which are implementing an asynchronous replication system must copy the supplied message to their own controlled memory storage area.

Parameters
Transactionmessage to be replicated

Implements drizzled::plugin::TransactionApplier.

Definition at line 1037 of file ha_innodb.cc.

References trx_struct::log_commit_id, and session_to_trx().


The documentation for this class was generated from the following files: