]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix rebuild_object_map() when no object map exists 6273/head
authorJosh Durgin <jdurgin@redhat.com>
Thu, 15 Oct 2015 01:28:33 +0000 (18:28 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 15 Oct 2015 07:32:08 +0000 (00:32 -0700)
commit1fb9fc9d35b9cc6c6c1cc898a1428cf57bdfe7ec
tree03a042d549c84d8570589985f7c44d5aab9e669c
parentf2b9f898074db6473d993436e6aa566a945e3b40
librbd: fix rebuild_object_map() when no object map exists

Enabling the object map feature and then attempting to rebuild it
results in an assert failure, since the number of objects was
accidentally passed to ObjectMap::aio_resize() instead of the size of
the image.

Fixes: #13496
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/librbd/RebuildObjectMapRequest.cc
src/test/librbd/test_librbd.cc