]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cls/fifo: Fix `same_or_later()` comparison
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 11 Nov 2022 01:00:38 +0000 (20:00 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 9 Jan 2023 17:59:57 +0000 (12:59 -0500)
Fix logic error where disjunction was used instead of conjunction.

Fixes: https://tracker.ceph.com/issues/57562
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/cls/fifo/cls_fifo_types.h

index 856732bcb79edc0cec127da0e1f7d08c10e8af3b..3ba5a2936214ae087cb2a79273682da2328eac52 100644 (file)
@@ -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);
   }