mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
removing previous_primary_view from public iface and style fixes
This commit is contained in:
@ -355,10 +355,6 @@ namespace wsrep
|
||||
* Return current view
|
||||
*/
|
||||
const wsrep::view& current_view() const { return current_view_; }
|
||||
/**
|
||||
* Return the previous primary view
|
||||
*/
|
||||
const wsrep::view& previous_primary_view() const { return previous_primary_view_; }
|
||||
/**
|
||||
* Set last committed GTID.
|
||||
*/
|
||||
|
@ -612,7 +612,8 @@ void wsrep::server_state::sst_received(wsrep::client_service& cs,
|
||||
throw wsrep::runtime_error(msg.str());
|
||||
}
|
||||
|
||||
if (current_view_.status() == wsrep::view::primary) {
|
||||
if (current_view_.status() == wsrep::view::primary)
|
||||
{
|
||||
previous_primary_view_ = current_view_;
|
||||
}
|
||||
current_view_ = v;
|
||||
@ -901,7 +902,8 @@ void wsrep::server_state::on_view(const wsrep::view& view,
|
||||
<< "name: " << i->name();
|
||||
}
|
||||
wsrep::log_info() << "=================================================";
|
||||
if (current_view_.status() == wsrep::view::primary) {
|
||||
if (current_view_.status() == wsrep::view::primary)
|
||||
{
|
||||
previous_primary_view_ = current_view_;
|
||||
}
|
||||
current_view_ = view;
|
||||
|
Reference in New Issue
Block a user