From 4e253c459cd974117dc22a4405b10d0518da7157 Mon Sep 17 00:00:00 2001 From: dparmar18 Date: Mon, 25 Jul 2022 17:58:22 +0530 Subject: [PATCH] mds/Server: dispatch_peer_request - clarify reason of abort Signed-off-by: Dhairya Parmar (cherry picked from commit 48ee04fd57066ecf742c0be5a224628f4dd23c14) --- src/mds/Server.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index fbe29c780e2f..a04b441ed9a0 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -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"); } } -- 2.47.3