mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-08-06 15:02:41 +03:00
Refs codership/wsrep-lib#18 Don't recover view from state if SST failed.
It is pointless and most likely will result in an unnecessary error message logged.
This commit is contained in:
@@ -517,6 +517,8 @@ void wsrep::server_state::sst_received(wsrep::client_service& cs,
|
||||
"wsrep::sst_received() called before connection to cluster");
|
||||
}
|
||||
|
||||
if (0 == error) /* SST was a success, recover view */
|
||||
{
|
||||
wsrep::view const v(server_service_.get_view(cs, id_));
|
||||
wsrep::log_info() << "Recovered view from SST:\n" << v;
|
||||
|
||||
@@ -537,6 +539,7 @@ void wsrep::server_state::sst_received(wsrep::client_service& cs,
|
||||
|
||||
current_view_ = v;
|
||||
server_service_.log_view(NULL /* this view is stored already */, v);
|
||||
}
|
||||
|
||||
if (provider().sst_received(gtid, error))
|
||||
{
|
||||
|
Reference in New Issue
Block a user