From: Xiubo Li Date: Tue, 7 Dec 2021 01:49:14 +0000 (+0800) Subject: mds: remove the duplicated or incorrect respond X-Git-Tag: v16.2.8~235^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44623%2Fhead;p=ceph.git 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) --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 618f1160de56..7135fe1c8686 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 ||