1
0
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:
Teemu Ollakka
2023-09-18 20:47:13 +03:00
parent 26434e4fc8
commit 3d998f9ad6
2 changed files with 6 additions and 2 deletions

View File

@ -285,11 +285,15 @@ namespace wsrep
static const int streaming = (1 << 15);
static const int snapshot = (1 << 16);
static const int nbo = (1 << 17);
static const int streaming_log = (1 << 18);
/** decipher capability bitmask */
static std::string str(int);
};
bool has_streaming_log() const {
return (capabilities() & capability::streaming_log) != 0;
}
provider(wsrep::server_state& server_state)
: server_state_(server_state)
{ }

View File

@ -120,7 +120,7 @@ std::string wsrep::provider::capability::str(int caps)
WSREP_PRINT_CAPABILITY(streaming, "STREAMING");
WSREP_PRINT_CAPABILITY(snapshot, "READ_VIEW");
WSREP_PRINT_CAPABILITY(nbo, "NBO");
WSREP_PRINT_CAPABILITY(streaming_log, "STREAMING_LOG");
#undef WSREP_PRINT_CAPABILITY
if (caps)