mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-06-14 15:02:27 +03:00
Tests and fixes for replaying.
This commit is contained in:
@ -223,10 +223,10 @@ namespace wsrep
|
||||
return transaction_.start_transaction(wsh, meta);
|
||||
}
|
||||
|
||||
int start_replaying()
|
||||
int start_replaying(const wsrep::ws_meta& ws_meta)
|
||||
{
|
||||
assert(mode_ == m_applier);
|
||||
return transaction_.start_replaying();
|
||||
return transaction_.start_replaying(ws_meta);
|
||||
}
|
||||
|
||||
void adopt_transaction(wsrep::transaction_context& transaction)
|
||||
@ -483,7 +483,8 @@ namespace wsrep
|
||||
/*!
|
||||
* Replay the transaction.
|
||||
*/
|
||||
virtual int replay(wsrep::transaction_context& tc) = 0;
|
||||
virtual enum wsrep::provider::status
|
||||
replay(wsrep::transaction_context& tc) = 0;
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -243,7 +243,8 @@ namespace wsrep
|
||||
*
|
||||
* @return Zero in case of success, non-zero on failure.
|
||||
*/
|
||||
virtual int replay(wsrep::ws_handle& ws_handle, void* applier_ctx) = 0;
|
||||
virtual enum status replay(
|
||||
wsrep::ws_handle& ws_handle, void* applier_ctx) = 0;
|
||||
|
||||
virtual int sst_sent(const wsrep::gtid&, int) = 0;
|
||||
virtual int sst_received(const wsrep::gtid&, int) = 0;
|
||||
|
@ -85,7 +85,7 @@ namespace wsrep
|
||||
int start_transaction(const wsrep::ws_handle& ws_handle,
|
||||
const wsrep::ws_meta& ws_meta);
|
||||
|
||||
int start_replaying();
|
||||
int start_replaying(const wsrep::ws_meta&);
|
||||
|
||||
int append_key(const wsrep::key&);
|
||||
|
||||
|
Reference in New Issue
Block a user