]> 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>
Mon, 26 Sep 2022 11:59:12 +0000 (17:29 +0530)
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 48ee04fd57066ecf742c0be5a224628f4dd23c14)

src/mds/Server.cc

index fbe29c780e2fd24d33cc21b78f56f6f6bfac0de9..a04b441ed9a0e8ca71b851022bee78c47956750f 100644 (file)
@@ -2883,7 +2883,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 " 
@@ -2970,7 +2970,7 @@ void Server::dispatch_peer_request(MDRequestRef& mdr)
     break;
 
   default: 
-    ceph_abort();
+    ceph_abort_msg("unknown op "+ to_string(op)+ " received");
   }
 }