1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-03 16:22:35 +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:
Teemu Ollakka
2019-08-29 14:56:21 +03:00
parent 55427188c1
commit 20128556d6

View File

@ -1170,6 +1170,7 @@ void wsrep::server_state::convert_streaming_client_to_applier(
else
{
server_service_.release_high_priority_service(streaming_applier);
client_state->client_service().store_globals();
}
}