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

codership/wsrep-lib#44 Provider name, version and vendor getters

Added methods to get provider name, version and vendor strings
into wsrep::provider interface. Implementations for v26 and mock
providers.
This commit is contained in:
Teemu Ollakka
2019-01-02 12:11:26 +02:00
parent cc67313515
commit 0441746368
4 changed files with 41 additions and 0 deletions

View File

@ -248,6 +248,9 @@ namespace wsrep
std::string options() const { return ""; }
enum wsrep::provider::status options(const std::string&)
{ return wsrep::provider::success; }
std::string name() const WSREP_OVERRIDE { return "mock"; }
std::string version() const WSREP_OVERRIDE { return "0.0"; }
std::string vendor() const WSREP_OVERRIDE { return "mock"; }
void* native() const { return 0; }
//