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

Some methods in wsrep-lib still hide/ignore return codes from provider

which complicates diagnostics and debugging.

Don't ignore provider return codes and more verbose error logging for
sst_sent(), sst_received(), set_encryption_key() methods

Refs codership/wsrep-lib#127
This commit is contained in:
Alexey Yurchenko
2020-03-27 15:31:23 +02:00
parent 593f737605
commit daae4a9c35
6 changed files with 107 additions and 49 deletions

View File

@ -276,11 +276,16 @@ namespace wsrep
{ return wsrep::provider::success; }
wsrep::gtid last_committed_gtid() const WSREP_OVERRIDE
{ return wsrep::gtid(); }
int sst_sent(const wsrep::gtid&, int) WSREP_OVERRIDE { return 0; }
int sst_received(const wsrep::gtid&, int) WSREP_OVERRIDE { return 0; }
enum wsrep::provider::status sst_sent(const wsrep::gtid&, int)
WSREP_OVERRIDE
{ return wsrep::provider::success; }
enum wsrep::provider::status sst_received(const wsrep::gtid&, int)
WSREP_OVERRIDE
{ return wsrep::provider::success; }
int enc_set_key(const wsrep::const_buffer&) WSREP_OVERRIDE
{ return 0; }
enum wsrep::provider::status enc_set_key(const wsrep::const_buffer&)
WSREP_OVERRIDE
{ return wsrep::provider::success; }
std::vector<status_variable> status() const WSREP_OVERRIDE
{