mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-21 12:22:06 +03:00
Added convenience method prev() to seqno
This commit is contained in:
@ -51,6 +51,11 @@ namespace wsrep
|
|||||||
return (seqno_ == -1);
|
return (seqno_ == -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wsrep::seqno prev() const
|
||||||
|
{
|
||||||
|
return seqno{seqno_ - 1};
|
||||||
|
}
|
||||||
|
|
||||||
bool operator<(seqno other) const
|
bool operator<(seqno other) const
|
||||||
{
|
{
|
||||||
return (seqno_ < other.seqno_);
|
return (seqno_ < other.seqno_);
|
||||||
|
Reference in New Issue
Block a user