1
0
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:
Teemu Ollakka
2022-05-08 12:45:36 +03:00
parent b3f0e05da4
commit 00e43e7be0

View File

@ -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_);