From dae8e781452311a2ec32fbf443814e43337294d8 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Thu, 10 Nov 2022 20:00:38 -0500 Subject: [PATCH] cls/fifo: Fix `same_or_later()` comparison Fix logic error where disjunction was used instead of conjunction. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson --- src/cls/fifo/cls_fifo_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/fifo/cls_fifo_types.h b/src/cls/fifo/cls_fifo_types.h index 856732bcb79..3ba5a293621 100644 --- a/src/cls/fifo/cls_fifo_types.h +++ b/src/cls/fifo/cls_fifo_types.h @@ -65,7 +65,7 @@ struct objv { ver != rhs.ver); } bool same_or_later(const objv& rhs) const { - return (instance == rhs.instance || + return (instance == rhs.instance && ver >= rhs.ver); } -- 2.39.5