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

Improved SST diagnostic logging

This commit is contained in:
Alexey Yurchenko
2018-11-30 07:03:28 +02:00
parent 0f77323d0e
commit 21781f6644

View File

@ -480,14 +480,18 @@ int wsrep::server_state::start_sst(const std::string& sst_request,
void wsrep::server_state::sst_sent(const wsrep::gtid& gtid, int error) void wsrep::server_state::sst_sent(const wsrep::gtid& gtid, int error)
{ {
wsrep::log_info() << "SST sent: " << gtid << ": " << error; if (0 == error)
wsrep::log_info() << "SST sent: " << gtid;
else
wsrep::log_info() << "SST sending failed: " << error;
wsrep::unique_lock<wsrep::mutex> lock(mutex_); wsrep::unique_lock<wsrep::mutex> lock(mutex_);
state(lock, s_joined); state(lock, s_joined);
lock.unlock(); lock.unlock();
if (provider_->sst_sent(gtid, error)) if (provider_->sst_sent(gtid, error))
{ {
server_service_.log_message(wsrep::log::warning, server_service_.log_message(wsrep::log::warning,
"SST sent returned an error"); "Provider sst_sent() returned an error");
} }
} }