mirror of
https://github.com/ceph/ceph
synced 2025-03-20 09:16:59 +00:00
Merge pull request #5025 from majianpeng/librbd-remove-iohint
librbd: If objectmap tell object exist, don't send alloc_hint w/ write command Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
commit
a2ef5e431a
@ -506,7 +506,7 @@ namespace librbd {
|
||||
}
|
||||
|
||||
void AioWrite::add_write_ops(librados::ObjectWriteOperation *wr) {
|
||||
if (m_ictx->enable_alloc_hint)
|
||||
if (m_ictx->enable_alloc_hint && !m_ictx->object_map.object_may_exist(m_object_no))
|
||||
wr->set_alloc_hint(m_ictx->get_object_size(), m_ictx->get_object_size());
|
||||
wr->write(m_object_off, m_write_data);
|
||||
wr->set_op_flags2(m_op_flags);
|
||||
|
Loading…
Reference in New Issue
Block a user