mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Moved gtid class out of provider.hpp
This commit is contained in:
32
include/wsrep/gtid.hpp
Normal file
32
include/wsrep/gtid.hpp
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2018 Codership Oy <info@codership.com>
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef WSREP_GTID_HPP
|
||||||
|
#define WSREP_GTID_HPP
|
||||||
|
|
||||||
|
#include "id.hpp"
|
||||||
|
#include "seqno.hpp"
|
||||||
|
|
||||||
|
namespace wsrep
|
||||||
|
{
|
||||||
|
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_;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // WSREP_GTID_HPP
|
Reference in New Issue
Block a user