]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: make invalid OpRule, lc_op_ctx accesses impossible
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 28 Apr 2020 20:52:24 +0000 (16:52 -0400)
committerNathan Cutler <ncutler@suse.com>
Sun, 9 Aug 2020 20:49:12 +0000 (22:49 +0200)
commit96fd7b5be61d7fcba9346c3a30456291375a832b
tree25c61198cbe7500d5df3f799481d9557eea78a15
parent78821f17159bb39a99f2cf84e94968a125c00206
rgwlc: make invalid OpRule, lc_op_ctx accesses impossible

* At the cost of some additional overhead from deep copies,
  makes all access to these structures from WorkQ context safe.

* Lifts saved next-key-name and effective-mtime from LCOpAction
  to lc_op_ctx (via LCOpRule), former usage was incorrect

* Use ordered entry listing for Current, NonCurrent, and DM
  expiration--this is required by lookahead strategy

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit b610d504a2895656e1db6ed41c8cca8e12b98907)
src/rgw/rgw_lc.cc