mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-08-02 05:46:35 +03:00
Cleanups
This commit is contained in:
@ -31,8 +31,6 @@
|
|||||||
#define WSREP_UNUSED __attribute__((unused))
|
#define WSREP_UNUSED __attribute__((unused))
|
||||||
#if __cplusplus >= 201103L
|
#if __cplusplus >= 201103L
|
||||||
#define WSREP_OVERRIDE override
|
#define WSREP_OVERRIDE override
|
||||||
#define WSREP_CONSTEXPR_OR_INLINE constexpr
|
|
||||||
#else
|
#else
|
||||||
#define WSREP_OVERRIDE
|
#define WSREP_OVERRIDE
|
||||||
#define WSREP_CONSTEXPR_OR_INLINE inline
|
|
||||||
#endif // __cplusplus >= 201103L
|
#endif // __cplusplus >= 201103L
|
||||||
|
@ -34,6 +34,12 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Empty provider magic. If none provider is passed to make_provider(),
|
||||||
|
* a dummy provider is loaded.
|
||||||
|
*/
|
||||||
|
#define WSREP_LIB_PROVIDER_NONE "none"
|
||||||
|
|
||||||
namespace wsrep
|
namespace wsrep
|
||||||
{
|
{
|
||||||
class server_state;
|
class server_state;
|
||||||
@ -405,14 +411,6 @@ namespace wsrep
|
|||||||
*/
|
*/
|
||||||
virtual void* native() const = 0;
|
virtual void* native() const = 0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Empty provider magic. If none provider is passed to make_provider(),
|
|
||||||
* a dummy provider is loaded.
|
|
||||||
*/
|
|
||||||
static WSREP_CONSTEXPR_OR_INLINE
|
|
||||||
const char* none() { return "none"; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new provider.
|
* Create a new provider.
|
||||||
*
|
*
|
||||||
|
@ -95,6 +95,13 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Magic string to tell provider to engage into trivial (empty)
|
||||||
|
* state transfer. No data will be passed, but the node shall be
|
||||||
|
* considered joined.
|
||||||
|
*/
|
||||||
|
#define WSREP_LIB_SST_TRIVIAL "trivial"
|
||||||
|
|
||||||
namespace wsrep
|
namespace wsrep
|
||||||
{
|
{
|
||||||
// Forward declarations
|
// Forward declarations
|
||||||
@ -179,14 +186,6 @@ namespace wsrep
|
|||||||
rm_sync
|
rm_sync
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Magic string to tell provider to engage into trivial (empty)
|
|
||||||
* state transfer. No data will be passed, but the node shall be
|
|
||||||
* considered joined.
|
|
||||||
*/
|
|
||||||
static WSREP_CONSTEXPR_OR_INLINE
|
|
||||||
const char* sst_trivial() { return "trivial"; };
|
|
||||||
|
|
||||||
virtual ~server_state();
|
virtual ~server_state();
|
||||||
|
|
||||||
wsrep::encryption_service* encryption_service()
|
wsrep::encryption_service* encryption_service()
|
||||||
|
Reference in New Issue
Block a user