1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-24 10:42:31 +03:00

* Added size exceeded error code

* Return provider status from selected client_state calls
* Added more methods to provider interface
This commit is contained in:
Teemu Ollakka
2018-06-20 19:44:20 +03:00
parent bf7dad6815
commit ef0fb72b73
9 changed files with 109 additions and 15 deletions

View File

@ -21,11 +21,18 @@ namespace wsrep
int connect(const std::string&, const std::string&, const std::string&,
bool);
int disconnect();
int capabilities() const;
int desync();
int resync();
int pause();
int resume();
enum wsrep::provider::status run_applier(void*);
int start_transaction(wsrep::ws_handle&) { return 0; }
int append_key(wsrep::ws_handle&, const wsrep::key&);
int append_data(wsrep::ws_handle&, const wsrep::const_buffer&);
enum wsrep::provider::status
append_data(wsrep::ws_handle&, const wsrep::const_buffer&);
enum wsrep::provider::status
certify(wsrep::client_id, wsrep::ws_handle&,
int,
@ -46,6 +53,9 @@ namespace wsrep
int sst_received(const wsrep::gtid& gtid, int);
std::vector<status_variable> status() const;
void reset_status();
std::string options() const;
void options(const std::string&);
void* native() const;
private:
wsrep_provider_v26(const wsrep_provider_v26&);