[MDEV-6877] Removed unneded code from rpl_injector
The rpl_injector code is now considered dead code. This patch only removes the minimum number of function calls to allow implementing binlog_row_image. The other functions are to be removed in a subsequent patch.
This commit is contained in:
parent
e53ad95b73
commit
c096caee71
@ -118,62 +118,6 @@ int injector::transaction::use_table(server_id_type sid, table tbl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int injector::transaction::write_row (server_id_type sid, table tbl,
|
|
||||||
MY_BITMAP const* cols, size_t colcnt,
|
|
||||||
record_type record)
|
|
||||||
{
|
|
||||||
DBUG_ENTER("injector::transaction::write_row(...)");
|
|
||||||
|
|
||||||
int error= check_state(ROW_STATE);
|
|
||||||
if (error)
|
|
||||||
DBUG_RETURN(error);
|
|
||||||
|
|
||||||
server_id_type save_id= m_thd->variables.server_id;
|
|
||||||
m_thd->set_server_id(sid);
|
|
||||||
error= m_thd->binlog_write_row(tbl.get_table(), tbl.is_transactional(),
|
|
||||||
cols, colcnt, record);
|
|
||||||
m_thd->set_server_id(save_id);
|
|
||||||
DBUG_RETURN(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int injector::transaction::delete_row(server_id_type sid, table tbl,
|
|
||||||
MY_BITMAP const* cols, size_t colcnt,
|
|
||||||
record_type record)
|
|
||||||
{
|
|
||||||
DBUG_ENTER("injector::transaction::delete_row(...)");
|
|
||||||
|
|
||||||
int error= check_state(ROW_STATE);
|
|
||||||
if (error)
|
|
||||||
DBUG_RETURN(error);
|
|
||||||
|
|
||||||
server_id_type save_id= m_thd->variables.server_id;
|
|
||||||
m_thd->set_server_id(sid);
|
|
||||||
error= m_thd->binlog_delete_row(tbl.get_table(), tbl.is_transactional(),
|
|
||||||
cols, colcnt, record);
|
|
||||||
m_thd->set_server_id(save_id);
|
|
||||||
DBUG_RETURN(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int injector::transaction::update_row(server_id_type sid, table tbl,
|
|
||||||
MY_BITMAP const* cols, size_t colcnt,
|
|
||||||
record_type before, record_type after)
|
|
||||||
{
|
|
||||||
DBUG_ENTER("injector::transaction::update_row(...)");
|
|
||||||
|
|
||||||
int error= check_state(ROW_STATE);
|
|
||||||
if (error)
|
|
||||||
DBUG_RETURN(error);
|
|
||||||
|
|
||||||
server_id_type save_id= m_thd->variables.server_id;
|
|
||||||
m_thd->set_server_id(sid);
|
|
||||||
error= m_thd->binlog_update_row(tbl.get_table(), tbl.is_transactional(),
|
|
||||||
cols, colcnt, before, after);
|
|
||||||
m_thd->set_server_id(save_id);
|
|
||||||
DBUG_RETURN(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
injector::transaction::binlog_pos injector::transaction::start_pos() const
|
injector::transaction::binlog_pos injector::transaction::start_pos() const
|
||||||
{
|
{
|
||||||
|
@ -180,27 +180,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
int use_table(server_id_type sid, table tbl);
|
int use_table(server_id_type sid, table tbl);
|
||||||
|
|
||||||
/*
|
|
||||||
Add a 'write row' entry to the transaction.
|
|
||||||
*/
|
|
||||||
int write_row (server_id_type sid, table tbl,
|
|
||||||
MY_BITMAP const *cols, size_t colcnt,
|
|
||||||
record_type record);
|
|
||||||
|
|
||||||
/*
|
|
||||||
Add a 'delete row' entry to the transaction.
|
|
||||||
*/
|
|
||||||
int delete_row(server_id_type sid, table tbl,
|
|
||||||
MY_BITMAP const *cols, size_t colcnt,
|
|
||||||
record_type record);
|
|
||||||
|
|
||||||
/*
|
|
||||||
Add an 'update row' entry to the transaction.
|
|
||||||
*/
|
|
||||||
int update_row(server_id_type sid, table tbl,
|
|
||||||
MY_BITMAP const *cols, size_t colcnt,
|
|
||||||
record_type before, record_type after);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Commit a transaction.
|
Commit a transaction.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user