1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-11 16:48:11 +03:00

Fixed a condition to remove SR appliers during view change.

This commit is contained in:
Teemu Ollakka
2018-07-16 11:15:24 +03:00
parent 9f153be277
commit 4418627f1b

View File

@ -992,9 +992,12 @@ void wsrep::server_state::close_foreign_sr_transactions(
{
if (std::find_if(current_view_.members().begin(),
current_view_.members().end(),
server_id_cmp(i->first.first)) !=
server_id_cmp(i->first.first)) ==
current_view_.members().end())
{
wsrep::log_debug() << "Removing SR fragments for "
<< i->first.first
<< ", " << i->first.second;
wsrep::id server_id(i->first.first);
wsrep::transaction_id transaction_id(i->first.second);
wsrep::high_priority_service* streaming_applier(i->second);