]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: do not create empty object map object on image creation 11704/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 31 Oct 2016 16:09:08 +0000 (12:09 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 31 Oct 2016 16:09:08 +0000 (12:09 -0400)
Fixes: http://tracker.ceph.com/issues/17752
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/CreateRequest.cc

index e0448561b4873325a59ae4a2f0888a2223f783a7..e9ac3592b6d26bccca312ab0e98661100d4e080d 100644 (file)
@@ -471,7 +471,6 @@ void CreateRequest<I>::object_map_resize() {
   ldout(m_cct, 20) << this << " " << __func__ << dendl;
 
   librados::ObjectWriteOperation op;
-  op.create(true);
   cls_client::object_map_resize(&op, Striper::get_num_objects(m_layout, m_size),
                                 OBJECT_NONEXISTENT);