]> 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)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 30 Apr 2020 11:00:36 +0000 (07:00 -0400)
commitb610d504a2895656e1db6ed41c8cca8e12b98907
tree017a13557d6938969c76617ce3a59b2d76717e79
parentccff9f122b94e25f1c6947cbc08a51577ccc6431
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>
src/rgw/rgw_lc.cc