mirror of
https://github.com/ceph/ceph
synced 2025-01-02 17:12:31 +00:00
rgw: disable compression/encryption on Appendable objects
Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
2b3d6e316f
commit
bf49aff3a1
@ -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
|
||||
~~~~~~
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user