mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Unit tests for identifier class.
This commit is contained in:
@ -39,6 +39,7 @@
|
||||
#define WSREP_CLIENT_CONTEXT_HPP
|
||||
|
||||
#include "server_context.hpp"
|
||||
#include "provider.hpp"
|
||||
#include "transaction_context.hpp"
|
||||
#include "client_id.hpp"
|
||||
#include "mutex.hpp"
|
||||
@ -46,6 +47,7 @@
|
||||
#include "data.hpp"
|
||||
#include "thread.hpp"
|
||||
|
||||
|
||||
namespace wsrep
|
||||
{
|
||||
class server_context;
|
||||
|
@ -16,7 +16,7 @@ namespace wsrep
|
||||
runtime_error(const std::string& msg)
|
||||
: std::runtime_error(msg)
|
||||
{
|
||||
::abort();
|
||||
// ::abort();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -5,8 +5,7 @@
|
||||
#ifndef WSREP_PROVIDER_HPP
|
||||
#define WSREP_PROVIDER_HPP
|
||||
|
||||
#include "id.hpp"
|
||||
#include "seqno.hpp"
|
||||
#include "gtid.hpp"
|
||||
#include "key.hpp"
|
||||
#include "data.hpp"
|
||||
#include "client_id.hpp"
|
||||
@ -24,25 +23,6 @@ namespace wsrep
|
||||
{
|
||||
class server_context;
|
||||
|
||||
class gtid
|
||||
{
|
||||
public:
|
||||
gtid()
|
||||
: id_()
|
||||
, seqno_()
|
||||
{ }
|
||||
gtid(const wsrep::id& id, wsrep::seqno seqno)
|
||||
: id_(id)
|
||||
, seqno_(seqno)
|
||||
{ }
|
||||
const wsrep::id& id() const { return id_; }
|
||||
wsrep::seqno seqno() const { return seqno_ ; }
|
||||
private:
|
||||
wsrep::id id_;
|
||||
wsrep::seqno seqno_;
|
||||
};
|
||||
|
||||
|
||||
class stid
|
||||
{
|
||||
public:
|
||||
|
@ -61,20 +61,21 @@
|
||||
#ifndef WSREP_SERVER_CONTEXT_HPP
|
||||
#define WSREP_SERVER_CONTEXT_HPP
|
||||
|
||||
#include "exception.hpp"
|
||||
#include "mutex.hpp"
|
||||
#include "condition_variable.hpp"
|
||||
#include "provider.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
namespace wsrep
|
||||
{
|
||||
// Forward declarations
|
||||
// class provider;
|
||||
class ws_handle;
|
||||
class ws_meta;
|
||||
class provider;
|
||||
class client_context;
|
||||
class transaction_context;
|
||||
class gtid;
|
||||
class view;
|
||||
class data;
|
||||
|
||||
|
Reference in New Issue
Block a user