]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/lc: Fix lifecycle not working while bucket versioning is suspended 61138/head
authorTrang Tran <tttrangptit@gmail.com>
Thu, 24 Oct 2024 10:49:20 +0000 (17:49 +0700)
committerCasey Bodley <cbodley@redhat.com>
Wed, 18 Dec 2024 19:35:58 +0000 (14:35 -0500)
Signed-off-by: Trang Tran <tttrangptit@gmail.com>
(cherry picked from commit e1f3344216011a61b65013aec26220f180f4cfaf)

src/rgw/rgw_lc.cc

index a91b8301397231d4df4b0b6a5eadf476ba46406d..43c77ba23eefbc9a195b4680ead96ef08df9ce02 100644 (file)
@@ -1183,7 +1183,7 @@ public:
                       << " " << oc.wq->thr_name() << dendl;
     } else {
       /* ! o.is_delete_marker() */
-      r = remove_expired_obj(oc.dpp, oc, !oc.bucket->versioned(),
+      r = remove_expired_obj(oc.dpp, oc, !oc.bucket->versioning_enabled(),
                              {rgw::notify::ObjectExpirationCurrent,
                               rgw::notify::LifecycleExpirationDelete});
       if (r < 0) {