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

codership/wsrep-lib#34 Refactored view handling

Extracted on_primary_view(), on_non_primary_view() out of on_view().
This commit is contained in:
Teemu Ollakka
2018-12-14 13:14:26 +02:00
parent 76424ad515
commit ae0109f9b3
2 changed files with 126 additions and 101 deletions

View File

@ -609,6 +609,12 @@ namespace wsrep
// Close transactions when handling disconnect from the group.
void close_transactions_at_disconnect(wsrep::high_priority_service&);
// Handle primary view
void on_primary_view(const wsrep::view&,
wsrep::high_priority_service*);
// Handle non-primary view
void on_non_primary_view(const wsrep::view&,
wsrep::high_priority_service*);
// Common actions on final view
void go_final(wsrep::unique_lock<wsrep::mutex>&,
const wsrep::view&, wsrep::high_priority_service*);