Add more error logging to Galera checks

The reason for the failure is now logged.
This commit is contained in:
Markus Mäkelä 2018-11-05 01:11:21 +02:00
parent f085abf720
commit eb1bc0b768
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -854,6 +854,15 @@ int Galera_nodes::check_galera()
cout << "Expected cluster size: " << N << " Actual size: " << r[1] << endl;
}
}
else
{
cout << "Unexpected result size: "
<< (r.empty() ? "Empty result" : std::to_string(r.size())) << endl;
}
}
else
{
cout << "Failed to connect to the cluster" << endl;
}
disconnect();