1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-02 05:22:26 +03:00

Extracted duplicate logic into return_from_donor_state

The condition to skip changing to `s_joined` for all codepaths
which return from donor state. Extracted the logic into separate
method.

Commented start_sst_action in mock_server_service.
This commit is contained in:
Teemu Ollakka
2023-02-28 16:20:18 +02:00
parent 5a943b66a7
commit 7843345a19
3 changed files with 24 additions and 20 deletions

View File

@ -674,6 +674,9 @@ namespace wsrep
enum wsrep::provider::status send_pending_rollback_events(
wsrep::unique_lock<wsrep::mutex>& lock);
// Handle returning from donor state.
void return_from_donor_state(wsrep::unique_lock<wsrep::mutex>& lock);
wsrep::mutex& mutex_;
wsrep::condition_variable& cond_;
wsrep::server_service& server_service_;