From 92a04070fc0dc4f55dc0415442ed9003c29a9cf6 Mon Sep 17 00:00:00 2001 From: Teemu Ollakka Date: Sun, 8 May 2022 12:45:36 +0300 Subject: [PATCH] Added convenience method prev() to seqno --- include/wsrep/seqno.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wsrep/seqno.hpp b/include/wsrep/seqno.hpp index 9d8cedb..2baef3d 100644 --- a/include/wsrep/seqno.hpp +++ b/include/wsrep/seqno.hpp @@ -51,6 +51,11 @@ namespace wsrep return (seqno_ == -1); } + wsrep::seqno prev() const + { + return seqno{seqno_ - 1}; + } + bool operator<(seqno other) const { return (seqno_ < other.seqno_);