mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Check if client was interrupted before fragment replication
This commit is contained in:
@ -1039,6 +1039,14 @@ int wsrep::transaction::certify_fragment(
|
|||||||
|
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
||||||
|
if (client_service_.interrupted())
|
||||||
|
{
|
||||||
|
lock.lock();
|
||||||
|
state(lock, s_must_abort);
|
||||||
|
client_state_.override_error(wsrep::e_interrupted_error);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
wsrep::mutable_buffer data;
|
wsrep::mutable_buffer data;
|
||||||
if (client_service_.prepare_fragment_for_replication(data))
|
if (client_service_.prepare_fragment_for_replication(data))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user