mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Add provider streaming_log capability
This commit is contained in:
@ -285,11 +285,15 @@ namespace wsrep
|
|||||||
static const int streaming = (1 << 15);
|
static const int streaming = (1 << 15);
|
||||||
static const int snapshot = (1 << 16);
|
static const int snapshot = (1 << 16);
|
||||||
static const int nbo = (1 << 17);
|
static const int nbo = (1 << 17);
|
||||||
|
static const int streaming_log = (1 << 18);
|
||||||
/** decipher capability bitmask */
|
/** decipher capability bitmask */
|
||||||
static std::string str(int);
|
static std::string str(int);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bool has_streaming_log() const {
|
||||||
|
return (capabilities() & capability::streaming_log) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
provider(wsrep::server_state& server_state)
|
provider(wsrep::server_state& server_state)
|
||||||
: server_state_(server_state)
|
: server_state_(server_state)
|
||||||
{ }
|
{ }
|
||||||
|
@ -120,7 +120,7 @@ std::string wsrep::provider::capability::str(int caps)
|
|||||||
WSREP_PRINT_CAPABILITY(streaming, "STREAMING");
|
WSREP_PRINT_CAPABILITY(streaming, "STREAMING");
|
||||||
WSREP_PRINT_CAPABILITY(snapshot, "READ_VIEW");
|
WSREP_PRINT_CAPABILITY(snapshot, "READ_VIEW");
|
||||||
WSREP_PRINT_CAPABILITY(nbo, "NBO");
|
WSREP_PRINT_CAPABILITY(nbo, "NBO");
|
||||||
|
WSREP_PRINT_CAPABILITY(streaming_log, "STREAMING_LOG");
|
||||||
#undef WSREP_PRINT_CAPABILITY
|
#undef WSREP_PRINT_CAPABILITY
|
||||||
|
|
||||||
if (caps)
|
if (caps)
|
||||||
|
Reference in New Issue
Block a user