}
filter = processor;
+#if 0
if (compression_type != "none") {
plugin = Compressor::create(s->cct, compression_type);
- if (! plugin) {
- ldout(s->cct, 1) << "Cannot load plugin for rgw_compression_type "
- << compression_type << dendl;
- } else {
- compressor.emplace(s->cct, plugin, filter);
- filter = &*compressor;
+ if (! plugin) {
+ ldout(s->cct, 1) << "Cannot load plugin for rgw_compression_type "
+ << compression_type << dendl;
+ } else {
+ compressor.emplace(s->cct, plugin, filter);
+ filter = &*compressor;
+ }
}
- }
+#endif
done:
return op_ret;
<< op_ret << dendl;
goto done;
}
-
+#if 0
/* restore compression filter, if any */
if (compressor) {
compressor.emplace(s->cct, plugin, filter);
filter = &*compressor;
}
-
+#endif
op_ret = put_data_and_throttle(filter, data, ofs, false);
if (op_ret < 0) {
goto done;
}
fst = copy_source_range_fst;
-
+#if 0
op_ret = get_encrypt_filter(&encrypt, filter);
if (op_ret < 0) {
return;
}
}
}
-
+#endif
tracepoint(rgw_op, before_data_transfer, s->req_id.c_str());
do {
bufferlist data;
<< op_ret << dendl;
return;
}
-
+#if 0
op_ret = get_encrypt_filter(&encrypt, filter);
if (op_ret < 0) {
return;
filter = &*compressor;
}
}
+#endif
op_ret = put_data_and_throttle(filter, data, ofs, false);
if (op_ret < 0) {
return;
if (op_ret < 0) {
return;
}
-
+#if 0
op_ret = get_encrypt_filter(&encrypt, filter);
if (op_ret < 0) {
return;
}
}
}
-
+#endif
bool again;
do {
ceph::bufferlist data;
const auto& compression_type = store->get_zone_params().get_compression_type(
binfo.placement_rule);
CompressorRef plugin;
+#if 0
if (compression_type != "none") {
plugin = Compressor::create(s->cct, compression_type);
if (! plugin) {
filter = &*compressor;
}
}
-
+#endif
/* Upload file content. */
ssize_t len = 0;
size_t ofs = 0;
if (plugin && src_attrs.find(RGW_ATTR_CRYPT_MODE) == src_attrs.end()) {
//do not compress if object is encrypted
+#if 0
compressor = boost::in_place(cct, plugin, filter);
constexpr unsigned buffer_size = 512 * 1024;
buffering = boost::in_place(&*compressor, buffer_size);
filter = &*buffering;
+#endif
}
return 0;
}
/* We are adding to existing object.
* We use crypto mode that configured as if we were decrypting. */
res = rgw_s3_prepare_decrypt(s, xattrs, &block_crypt, crypt_http_responses);
+#if 0
if (res == 0 && block_crypt != nullptr)
*filter = std::unique_ptr<RGWPutObj_BlockEncrypt>(
new RGWPutObj_BlockEncrypt(s->cct, cb, std::move(block_crypt)));
+#endif
}
}
/* it is ok, to not have encryption at all */
{
std::unique_ptr<BlockCrypt> block_crypt;
res = rgw_s3_prepare_encrypt(s, attrs, nullptr, &block_crypt, crypt_http_responses);
+#if 0
if (res == 0 && block_crypt != nullptr) {
*filter = std::unique_ptr<RGWPutObj_BlockEncrypt>(
new RGWPutObj_BlockEncrypt(s->cct, cb, std::move(block_crypt)));
}
+#endif
}
return res;
}
int res = 0;
std::unique_ptr<BlockCrypt> block_crypt;
res = rgw_s3_prepare_encrypt(s, attrs, &parts, &block_crypt, crypt_http_responses);
+#if 0
if (res == 0 && block_crypt != nullptr) {
*filter = std::unique_ptr<RGWPutObj_BlockEncrypt>(
new RGWPutObj_BlockEncrypt(s->cct, cb, std::move(block_crypt)));
}
else
*filter = nullptr;
+#endif
return res;
}