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

* Moved causal reads/gtid wait into server state interface

* Changed undefined seqno to be defined as -1
This commit is contained in:
Teemu Ollakka
2018-06-21 10:37:55 +03:00
parent ef0fb72b73
commit 3a8861b26b
12 changed files with 167 additions and 65 deletions

View File

@ -232,7 +232,7 @@ namespace wsrep
virtual int desync() = 0;
virtual int resync() = 0;
virtual int pause() = 0;
virtual wsrep::seqno pause() = 0;
virtual int resume() = 0;
// Applier interface
@ -277,6 +277,14 @@ namespace wsrep
virtual enum status replay(
const wsrep::ws_handle& ws_handle, void* applier_ctx) = 0;
/**
* Perform a causal read on cluster.
*
* @param timeout Timeout in seconds
*
* @return Provider status indicating the result of the call.
*/
virtual enum wsrep::provider::status causal_read(int timeout) const = 0;
virtual int sst_sent(const wsrep::gtid&, int) = 0;
virtual int sst_received(const wsrep::gtid&, int) = 0;