]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Server: dispatch_peer_request - clarify reason of abort
authordparmar18 <dparmar@redhat.com>
Mon, 25 Jul 2022 12:28:22 +0000 (17:58 +0530)
committerdparmar18 <dparmar@redhat.com>
Thu, 25 Aug 2022 06:20:32 +0000 (11:50 +0530)
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
src/mds/Server.cc

index 4620bb0ffe45a9a6da5b5f46a89387c9cc4586e3..fe82f82e5472299dbc271f2b798d48bc6d64e428 100644 (file)
@@ -2911,7 +2911,7 @@ void Server::dispatch_peer_request(MDRequestRef& mdr)
 
       if (!lock) {
        dout(10) << "don't have object, dropping" << dendl;
-       ceph_abort(); // can this happen, if we auth pinned properly.
+       ceph_abort_msg("don't have object"); // can this happen, if we auth pinned properly.
       }
       if (op == MMDSPeerRequest::OP_XLOCK && !lock->get_parent()->is_auth()) {
        dout(10) << "not auth for remote xlock attempt, dropping on " 
@@ -2998,7 +2998,7 @@ void Server::dispatch_peer_request(MDRequestRef& mdr)
     break;
 
   default: 
-    ceph_abort();
+    ceph_abort_msg("unknown op "+ to_string(op)+ " received");
   }
 }