mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-08-05 04:01:12 +03:00
Add mark_transaction_pa_unsafe() to client_state.
This commit is contained in:
@@ -926,6 +926,23 @@ namespace wsrep
|
|||||||
{
|
{
|
||||||
return transaction_;
|
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
|
#ifdef WITH_WSREP_SR_SPEEDUP
|
||||||
/**
|
/**
|
||||||
* Return a reference to the transaction associated
|
* Return a reference to the transaction associated
|
||||||
|
Reference in New Issue
Block a user