From 39f7429391a8fa7cbcc2019a7ab9e7e0949d02ab 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 (cherry picked from commit d75164fd60427aa38a144da2587a6c815253993b) --- 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 618f1160de569..7135fe1c86869 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -2515,7 +2515,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.39.5