From 00e43e7be00dd8ddb9508c97195f5c6ae9ee6c34 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_);