From d75164fd60427aa38a144da2587a6c815253993b Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Tue, 7 Dec 2021 09:49:14 +0800 Subject: [PATCH] mds: remove the duplicated or incorrect respond The try_get_auth_inode() has already responded to the client or forwarded to auth MDS if returning NULL. Signed-off-by: Xiubo Li --- src/mds/Server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 0298f3fcc68..0f0669e4b92 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -2529,7 +2529,7 @@ void Server::dispatch_client_request(MDRequestRef& mdr) if (is_full) { CInode *cur = try_get_auth_inode(mdr, req->get_filepath().get_ino()); if (!cur) { - respond_to_request(mdr, -EINVAL); + // the request is already responded to return; } if (req->get_op() == CEPH_MDS_OP_SETLAYOUT || -- 2.47.3