1
0
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:
Pekka Lampio
2021-10-25 17:55:05 +03:00
parent 2e226600fa
commit 78e1752117

View File

@ -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