rgw: disable compression/encryption on Appendable objects

Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2019-09-13 14:44:31 -04:00
parent 2b3d6e316f
commit bf49aff3a1
2 changed files with 18 additions and 14 deletions

View File

@ -411,6 +411,7 @@ It is used to upload files in appending mode. The type of the objects created by
operation is Appendable Object, and the type of the objects uploaded with the Put Object operation is Normal Object.
**Append Object can't be used if bucket versioning is enabled or suspended.**
**Synced object will become normal in multisite, but you can still append to the original object.**
**Compression and encryption features are disabled for Appendable objects.**
Syntax
~~~~~~

View File

@ -3872,6 +3872,8 @@ void RGWPutObj::execute()
boost::optional<RGWPutObj_Compress> compressor;
std::unique_ptr<DataProcessor> encrypt;
if (!append) { // compression and encryption only apply to full object uploads
op_ret = get_encrypt_filter(&encrypt, filter);
if (op_ret < 0) {
return;
@ -3888,6 +3890,7 @@ void RGWPutObj::execute()
filter = &*compressor;
}
}
}
tracepoint(rgw_op, before_data_transfer, s->req_id.c_str());
do {
bufferlist data;