|
drizzle
C++ MySQL-protocol-compatible database server
|
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 |
Definition at line 28 of file replication_schema.h.
|
inline |
Definition at line 31 of file replication_schema.h.
| bool slave::ReplicationSchema::create | ( | ) |
Definition at line 36 of file replication_schema.cc.
| bool slave::ReplicationSchema::createInitialApplierRow | ( | uint32_t | master_id | ) |
Definition at line 142 of file replication_schema.cc.
| bool slave::ReplicationSchema::createInitialIORow | ( | uint32_t | master_id | ) |
Definition at line 117 of file replication_schema.cc.
| 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.
| [in] | master_id | Unique master identifier. |
| [in] | value | The initial value. |
Definition at line 174 of file replication_schema.cc.