1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-10-22 10:52:18 +03:00
Files
wsrep-lib/include/wsrep/gtid.hpp
2018-06-18 20:39:25 +03:00

37 lines
679 B
C++

//
// Copyright (C) 2018 Codership Oy <info@codership.com>
//
#ifndef WSREP_GTID_HPP
#define WSREP_GTID_HPP
#include "id.hpp"
#include "seqno.hpp"
#include <iosfwd>
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_;
};
std::ostream& operator<<(std::ostream&, const wsrep::gtid&);
}
#endif // WSREP_GTID_HPP