diff options
author | Adam C. Emerson <aemerson@redhat.com> | 2022-11-11 02:00:38 +0100 |
---|---|---|
committer | Adam C. Emerson <aemerson@redhat.com> | 2023-01-09 18:59:57 +0100 |
commit | dae8e781452311a2ec32fbf443814e43337294d8 (patch) | |
tree | e79ef5f90eff178ce6ef35a49d2fbfff5ad5f6dd /src/cls/fifo | |
parent | Merge pull request #48696 from adk3798/agent-testing-binary (diff) | |
download | ceph-dae8e781452311a2ec32fbf443814e43337294d8.tar.xz ceph-dae8e781452311a2ec32fbf443814e43337294d8.zip |
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 <aemerson@redhat.com>
Diffstat (limited to 'src/cls/fifo')
-rw-r--r-- | src/cls/fifo/cls_fifo_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |