]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: ignore -ENOENT error when disabling object-map 37852/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 12 Oct 2020 19:28:52 +0000 (15:28 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 09:32:56 +0000 (10:32 +0100)
Fixes: https://tracker.ceph.com/issues/47840
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8e88224d8d1e7602392a81ed4da8139a79600d8f)

src/librbd/operation/DisableFeaturesRequest.cc

index c46d37f05eb707e75dee2f0daa23131ceb35ae6b..97c0d2219b64c7a55f7c34ba2bf75f212dec5bf9 100644 (file)
@@ -480,7 +480,7 @@ Context *DisableFeaturesRequest<I>::handle_remove_object_map(int *result) {
   CephContext *cct = image_ctx.cct;
   ldout(cct, 20) << this << " " << __func__ << ": r=" << *result << dendl;
 
-  if (*result < 0) {
+  if (*result < 0 && *result != -ENOENT) {
     lderr(cct) << "failed to remove object map: " << cpp_strerror(*result) << dendl;
     return handle_finish(*result);
   }