mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
Merge pull request #39303 from dillaman/wip-49173
librbd/io: conditionally disable move optimization Reviewed-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
commit
7bafcfbb01
@ -527,7 +527,8 @@ ObjectDispatchSpec *ImageWriteRequest<I>::create_object_request(
|
||||
I &image_ctx = this->m_image_ctx;
|
||||
|
||||
bufferlist bl;
|
||||
if (single_extent && object_extent.buffer_extents.size() == 1) {
|
||||
if (single_extent && object_extent.buffer_extents.size() == 1 &&
|
||||
m_bl.length() == object_extent.length) {
|
||||
// optimization for single object/buffer extent writes
|
||||
bl = std::move(m_bl);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user