mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Restore original thread local storage after releasing streaming applier.
In convert_streaming_client_to_applier() the new streaming applier is created and deleted if the server has been disconnected. However, releasing streaming applier may modify thread local storage. Call store_globals() to restore thread local storage before returning.
This commit is contained in:
@ -1170,6 +1170,7 @@ void wsrep::server_state::convert_streaming_client_to_applier(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
server_service_.release_high_priority_service(streaming_applier);
|
server_service_.release_high_priority_service(streaming_applier);
|
||||||
|
client_state->client_service().store_globals();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user