From 65b4ce91235c717a74fcb39a7dcf37da4928034b Mon Sep 17 00:00:00 2001 From: Teemu Ollakka Date: Tue, 12 Jun 2018 11:03:50 +0300 Subject: [PATCH] Moved gtid class out of provider.hpp --- include/wsrep/gtid.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/wsrep/gtid.hpp diff --git a/include/wsrep/gtid.hpp b/include/wsrep/gtid.hpp new file mode 100644 index 0000000..dceb350 --- /dev/null +++ b/include/wsrep/gtid.hpp @@ -0,0 +1,32 @@ +// +// Copyright (C) 2018 Codership Oy +// + +#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