]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: ignore -ENOENT error when disabling object-map 37814/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 12 Oct 2020 19:28:52 +0000 (15:28 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 26 Oct 2020 20:37:59 +0000 (21:37 +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 dc58a989ab952c5c62be396960ca35e190177cff..27dfa4580cf96b7358d1fd20b708b32f06336fe9 100644 (file)
@@ -481,7 +481,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);
   }