From: Casey Bodley Date: Mon, 26 Aug 2019 13:28:30 +0000 (-0400) Subject: rgw: fix default storage class for get_compression_type X-Git-Tag: v15.1.0~1493^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2b3d6e316fc6c0d935e1cd76666a88c3247d8bde;p=ceph.git rgw: fix default storage class for get_compression_type if a PUT request does not specify a storage class, use the default STANDARD storage class when looking up its compression type Fixes: https://tracker.ceph.com/issues/40935 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_zone.cc b/src/rgw/rgw_zone.cc index 812b037d9877..a0519adcab12 100644 --- a/src/rgw/rgw_zone.cc +++ b/src/rgw/rgw_zone.cc @@ -1755,7 +1755,7 @@ const string& RGWZoneParams::get_compression_type(const rgw_placement_rule& plac if (p == placement_pools.end()) { return NONE; } - const auto& type = p->second.get_compression_type(placement_rule.storage_class); + const auto& type = p->second.get_compression_type(placement_rule.get_storage_class()); return !type.empty() ? type : NONE; }