1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Allow negative seqnos

This commit is contained in:
Teemu Ollakka
2018-06-27 12:02:38 +03:00
parent b1a374a9ba
commit d659c6bebd

View File

@ -14,10 +14,6 @@ namespace wsrep
/** @class seqno
*
* Sequence number type.
*
* By convention, nil value is zero, negative values are not allowed.
* Relation operators are restricted to < and > on purpose to
* enforce correct use.
*/
class seqno
{
@ -28,12 +24,7 @@ namespace wsrep
explicit seqno(long long seqno)
: seqno_(seqno)
{
if (seqno_ < -1)
{
throw wsrep::runtime_error("Too negative seqno given");
}
}
{ }
long long get() const
{