]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/lc: Fix lifecycle not working while bucket versioning is suspended 59449/head
authorTrang Tran <tttrangptit@gmail.com>
Thu, 24 Oct 2024 10:49:20 +0000 (17:49 +0700)
committerTrang Tran <tttrangptit@gmail.com>
Thu, 24 Oct 2024 10:49:20 +0000 (17:49 +0700)
Signed-off-by: Trang Tran <tttrangptit@gmail.com>
src/rgw/rgw_lc.cc

index a7f2ceabad34ab21ea0e57fb0fd57294ac16a2da..c9fb4765d59d728cab1bf0943b0c0862644f2700 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) {