]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Get canonical storage class when storage class is empty in 59317/head
authorzhangzhiming <zhangzhm1@chinatelecom.cn>
Fri, 14 Jan 2022 03:28:52 +0000 (11:28 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 19 Aug 2024 16:32:52 +0000 (23:32 +0700)
lifecycle configuration.

Fixes: https://tracker.ceph.com/issues/53878
Signed-off-by: zhiming zhang <zhangzhm1@chinatelecom.cn>
(cherry picked from commit 3a797b3be289f74f26cdfbe82461890b7a4eb2a9)

src/rgw/rgw_lc.cc

index 1a23988f8fc7f014bc7a92f887f0862d58443298..4fa8d409d7dab506407f2cd7404e6aaa8e01473d 100644 (file)
@@ -141,7 +141,8 @@ bool RGWLifecycleConfiguration::_add_rule(const LCRule& rule)
     transition_action action;
     action.days = elem.second.get_days();
     action.date = ceph::from_iso_8601(elem.second.get_date());
-    action.storage_class = elem.first;
+    action.storage_class
+      = rgw_placement_rule::get_canonical_storage_class(elem.first);
     op.noncur_transitions.emplace(elem.first, std::move(action));
   }
   std::string prefix;