]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: apply_olh_log should clear_olh before trimming olh log
authorCory Snyder <csnyder@1111systems.com>
Wed, 14 Jun 2023 14:01:43 +0000 (14:01 +0000)
committerCory Snyder <csnyder@1111systems.com>
Wed, 19 Jul 2023 11:15:48 +0000 (11:15 +0000)
commitaa666d56c52102a6209ce6bacfd944c68e4455c8
tree15ab89e3223cc63224993b7ce1a940258ee40201
parent9fb9437d0412049215dd2239e52890e87ff0b09f
rgw: apply_olh_log should clear_olh before trimming olh log

When pending_removal is true and the log is trimmed prior to
clearing olh, it allows for the possibility that the olh is not
cleared (e.g. due to new pending xattrs on the olh obj), but the
olh log entries are removed.

Signed-off-by: Cory Snyder <csnyder@1111systems.com>
(cherry picked from commit dfbe4f9cb078bad9a0244ce433a9728f8bd6b912)

Conflicts:
src/rgw/rgw_rados.cc

Cherry-pick notes:
- conflicts due to optional_yield param differences
src/rgw/rgw_rados.cc