]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: disable write_full optimization if image has parent 7133/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 6 Jan 2016 19:55:02 +0000 (14:55 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 6 Jan 2016 19:56:39 +0000 (14:56 -0500)
Fixes: #14241
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AioObjectRequest.cc

index 5b3d6165613747f6d04d67880f9870eda5bad1e4..e7750cb854dcc1829487b902ea2718b3f683e5ca 100644 (file)
@@ -549,7 +549,7 @@ namespace librbd {
                           << m_object_off << "~" << m_object_len
                            << " object exist " << m_object_exist
                           << " write_full " << write_full << dendl;
-    if (write_full) {
+    if (write_full && !has_parent()) {
       send_write_op(false);
     } else {
       AbstractAioObjectWrite::send_write();