mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Add mark_transaction_pa_unsafe() to client_state.
This commit is contained in:
@ -926,6 +926,23 @@ namespace wsrep
|
||||
{
|
||||
return transaction_;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark the transaction associated with the client state
|
||||
* (if any), as unsafe for parallel applying
|
||||
*
|
||||
* @return Zero on success, non-zero on error.
|
||||
*/
|
||||
int mark_transaction_pa_unsafe()
|
||||
{
|
||||
if (transaction_.active())
|
||||
{
|
||||
transaction_.pa_unsafe(true);
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef WITH_WSREP_SR_SPEEDUP
|
||||
/**
|
||||
* Return a reference to the transaction associated
|
||||
|
Reference in New Issue
Block a user