mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Fixes to SR rollback:
* Enable codepath to BF abort high priority SR applier * Pass ws_handle, ws_meta to high priority service rollback call to allow total ordering of rollback process
This commit is contained in:
@ -51,8 +51,11 @@ int wsrep::mock_high_priority_service::commit(
|
||||
client_state_->after_commit());
|
||||
}
|
||||
|
||||
int wsrep::mock_high_priority_service::rollback()
|
||||
int wsrep::mock_high_priority_service::rollback(
|
||||
const wsrep::ws_handle& ws_handle,
|
||||
const wsrep::ws_meta& ws_meta)
|
||||
{
|
||||
client_state_->prepare_for_ordering(ws_handle, ws_meta, false);
|
||||
return (client_state_->before_rollback() ||
|
||||
client_state_->after_rollback());
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ namespace wsrep
|
||||
{ return 0; }
|
||||
int commit(const wsrep::ws_handle&, const wsrep::ws_meta&)
|
||||
WSREP_OVERRIDE;
|
||||
int rollback() WSREP_OVERRIDE;
|
||||
int rollback(const wsrep::ws_handle&, const wsrep::ws_meta&) WSREP_OVERRIDE;
|
||||
int apply_toi(const wsrep::ws_meta&,
|
||||
const wsrep::const_buffer&) WSREP_OVERRIDE;
|
||||
void after_apply() WSREP_OVERRIDE;
|
||||
|
Reference in New Issue
Block a user