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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user