mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-08-06 15:02:41 +03:00
Implemented SR transaction rollback.
This commit is contained in:
@@ -36,6 +36,12 @@ namespace wsrep
|
||||
virtual int start_transaction(const wsrep::ws_handle&,
|
||||
const wsrep::ws_meta&) = 0;
|
||||
|
||||
/**
|
||||
* Return transaction object associated to high priority
|
||||
* service state.
|
||||
*/
|
||||
virtual const wsrep::transaction& transaction() const = 0;
|
||||
|
||||
/**
|
||||
* Adopt a transaction.
|
||||
*/
|
||||
@@ -83,8 +89,18 @@ namespace wsrep
|
||||
|
||||
/**
|
||||
* Commit a transaction.
|
||||
* An implementation must call
|
||||
* wsrep::client_state::prepare_for_ordering() to set
|
||||
* the ws_handle and ws_meta before the commit if the
|
||||
* commit process will go through client state commit
|
||||
* processing. Otherwise the implementation must release
|
||||
* commit order explicitly via provider.
|
||||
*
|
||||
* @param ws_handle Write set handle
|
||||
* @param ws_meta Write set meta
|
||||
*/
|
||||
virtual int commit(const wsrep::ws_handle&, const wsrep::ws_meta&) = 0;
|
||||
virtual int commit(const wsrep::ws_handle& ws_handle,
|
||||
const wsrep::ws_meta& ws_meta) = 0;
|
||||
/**
|
||||
* Roll back a transaction
|
||||
*/
|
||||
|
Reference in New Issue
Block a user