mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Pass victim context for provider on BF abort
This change is needed for custom provider implementations to have a way to access the victim in the application context. Helper interface operation_context to pass caller context for service/provider callbacks in more type safe way.
This commit is contained in:
@ -26,6 +26,7 @@
|
||||
#include "client_id.hpp"
|
||||
#include "transaction_id.hpp"
|
||||
#include "compiler.hpp"
|
||||
#include "operation_context.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
@ -342,6 +343,7 @@ namespace wsrep
|
||||
*/
|
||||
virtual enum status bf_abort(wsrep::seqno bf_seqno,
|
||||
wsrep::transaction_id victim_trx,
|
||||
wsrep::operation_context& victim_ctx,
|
||||
wsrep::seqno& victim_seqno) = 0;
|
||||
virtual enum status rollback(wsrep::transaction_id) = 0;
|
||||
virtual enum status commit_order_enter(const wsrep::ws_handle&,
|
||||
|
Reference in New Issue
Block a user