int RGWWriteRequest::exec_start() {
struct req_state* s = get_state();
+ auto compression_type =
+ get_store()->get_zone_params().get_compression_type(
+ s->bucket_info.placement_rule);
+
/* not obviously supportable */
assert(! dlo_manifest);
assert(! slo_info);
}
filter = processor;
-
- if (compression_type == "none")
- compression_type = get_store()->get_zone_params().get_compression_type(
- s->bucket_info.placement_rule);
if (compression_type != "none") {
plugin = Compressor::create(s->cct, compression_type);
if (! plugin) {
filter = &*compressor;
}
- op_ret = put_data_and_throttle(processor, data, ofs, false);
+ op_ret = put_data_and_throttle(filter, data, ofs, false);
if (op_ret < 0) {
goto done;
}
RGWPutObjProcessor* processor;
RGWPutObjDataProcessor* filter;
boost::optional<RGWPutObj_Compress> compressor;
- std::string compression_type = "none";
CompressorRef plugin;
buffer::list data;
uint64_t timer_id;