drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
slave::ReplicationSchema Class Reference
Inheritance diagram for slave::ReplicationSchema:
[legend]
Collaboration diagram for slave::ReplicationSchema:
[legend]

Public Member Functions

bool create ()
bool setInitialMaxCommitId (uint32_t master_id, uint64_t value)
bool createInitialApplierRow (uint32_t master_id)
bool createInitialIORow (uint32_t master_id)
Public Member Functions inherited from slave::SQLExecutor
 SQLExecutor (const std::string &user, const std::string &schema)
void markInErrorState ()
void clearErrorState ()
const std::string & getErrorMessage () const
bool executeSQL (std::vector< std::string > &sql)

Additional Inherited Members

Protected Attributes inherited from slave::SQLExecutor
drizzled::Session::shared_ptr _session

Detailed Description

Definition at line 28 of file replication_schema.h.

Constructor & Destructor Documentation

◆ ReplicationSchema()

slave::ReplicationSchema::ReplicationSchema ( )
inline

Definition at line 31 of file replication_schema.h.

Member Function Documentation

◆ create()

bool slave::ReplicationSchema::create ( )

Definition at line 36 of file replication_schema.cc.

◆ createInitialApplierRow()

bool slave::ReplicationSchema::createInitialApplierRow ( uint32_t master_id)

Definition at line 142 of file replication_schema.cc.

◆ createInitialIORow()

bool slave::ReplicationSchema::createInitialIORow ( uint32_t master_id)

Definition at line 117 of file replication_schema.cc.

◆ setInitialMaxCommitId()

bool slave::ReplicationSchema::setInitialMaxCommitId ( uint32_t master_id,
uint64_t value )

Set initial value of the last applied COMMIT_ID value in applier_state.

This is used when the server is started with –slave.max-commit-id to begin reading from the master transaction log at a given point. This method will persist the value to the applier_state table. If it wasn't permanently stored immediately, we risk the possibility of losing the value if the server is again restarted without ever having received another event from the master (which causes persistence of the value). An edge case, but still possible.

Parameters
[in]master_idUnique master identifier.
[in]valueThe initial value.

Definition at line 174 of file replication_schema.cc.


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