]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/fifo: Move version inc into `apply_update()`
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 14 Dec 2022 18:12:48 +0000 (13:12 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 9 Jan 2023 19:00:34 +0000 (14:00 -0500)
commit32b514c52b37374202f20f588ef444144ba0e2c4
tree6cbb1818b999bc4ae7fc72ca3eae01f4a6eeeafc
parentade8909991682da9f665e75c16f1662f98f1e51a
cls/fifo: Move version inc into `apply_update()`

Only increment the version if we make an actual change.

Return whether we have changed something or not so the OSD side can
skip writing if there's no change.

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