mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Remove provider position from ws_meta and view
Provider position clutters the public interface and is not required by wsrep-API v26. Remove the position from ws_meta/view classes and deal with it internally in custom providers.
This commit is contained in:
@ -125,25 +125,21 @@ namespace wsrep
|
||||
, stid_()
|
||||
, depends_on_()
|
||||
, flags_()
|
||||
, provider_position_()
|
||||
{ }
|
||||
ws_meta(const wsrep::gtid& gtid,
|
||||
const wsrep::stid& stid,
|
||||
wsrep::seqno depends_on,
|
||||
int flags,
|
||||
int64_t provider_position)
|
||||
int flags)
|
||||
: gtid_(gtid)
|
||||
, stid_(stid)
|
||||
, depends_on_(depends_on)
|
||||
, flags_(flags)
|
||||
, provider_position_(provider_position)
|
||||
{ }
|
||||
ws_meta(const wsrep::stid& stid)
|
||||
: gtid_()
|
||||
, stid_(stid)
|
||||
, depends_on_()
|
||||
, flags_()
|
||||
, provider_position_()
|
||||
{ }
|
||||
const wsrep::gtid& gtid() const { return gtid_; }
|
||||
const wsrep::id& group_id() const
|
||||
@ -175,8 +171,6 @@ namespace wsrep
|
||||
|
||||
wsrep::seqno depends_on() const { return depends_on_; }
|
||||
|
||||
int64_t provider_position() const { return provider_position_; }
|
||||
|
||||
int flags() const { return flags_; }
|
||||
|
||||
bool operator==(const ws_meta& other) const
|
||||
@ -193,8 +187,6 @@ namespace wsrep
|
||||
wsrep::stid stid_;
|
||||
wsrep::seqno depends_on_;
|
||||
int flags_;
|
||||
/** Field reserved for provider to report its internal position. */
|
||||
int64_t provider_position_;
|
||||
};
|
||||
|
||||
std::string flags_to_string(int flags);
|
||||
|
@ -70,7 +70,6 @@ namespace wsrep
|
||||
, capabilities_()
|
||||
, own_index_(-1)
|
||||
, protocol_version_(0)
|
||||
, provider_position_()
|
||||
, members_()
|
||||
{ }
|
||||
view(const wsrep::gtid& state_id,
|
||||
@ -79,15 +78,13 @@ namespace wsrep
|
||||
int capabilities,
|
||||
ssize_t own_index,
|
||||
int protocol_version,
|
||||
const std::vector<wsrep::view::member>& members,
|
||||
int64_t provider_position)
|
||||
const std::vector<wsrep::view::member>& members)
|
||||
: state_id_(state_id)
|
||||
, view_seqno_(view_seqno)
|
||||
, status_(status)
|
||||
, capabilities_(capabilities)
|
||||
, own_index_(own_index)
|
||||
, protocol_version_(protocol_version)
|
||||
, provider_position_(provider_position)
|
||||
, members_(members)
|
||||
{ }
|
||||
|
||||
@ -114,9 +111,6 @@ namespace wsrep
|
||||
int protocol_version() const
|
||||
{ return protocol_version_; }
|
||||
|
||||
int64_t provider_position() const
|
||||
{ return provider_position_; }
|
||||
|
||||
const std::vector<member>& members() const
|
||||
{ return members_; }
|
||||
|
||||
@ -153,8 +147,6 @@ namespace wsrep
|
||||
int capabilities_;
|
||||
ssize_t own_index_;
|
||||
int protocol_version_;
|
||||
/** Field reserved for provider to report its internal position. */
|
||||
int64_t provider_position_;
|
||||
std::vector<wsrep::view::member> members_;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user