1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +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

@ -43,6 +43,11 @@ namespace wsrep
bool)
{ return 0; }
int disconnect() { return 0; }
int capabilities() const { return 0; }
int desync() { return 0; }
int resync() { return 0; }
int pause() { return 0; }
int resume() { return 0; }
enum wsrep::provider::status run_applier(void*)
{
return wsrep::provider::success;
@ -121,8 +126,9 @@ namespace wsrep
int append_key(wsrep::ws_handle&, const wsrep::key&)
{ return 0; }
int append_data(wsrep::ws_handle&, const wsrep::const_buffer&)
{ return 0; }
enum wsrep::provider::status
append_data(wsrep::ws_handle&, const wsrep::const_buffer&)
{ return wsrep::provider::success; }
int rollback(const wsrep::transaction_id)
{
++fragments_;
@ -199,6 +205,9 @@ namespace wsrep
{
return std::vector<status_variable>();
}
void reset_status() { }
std::string options() const { return ""; }
void options(const std::string&) { }
void* native() const { return 0; }
//