]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: cleanup the code to make it to be more readable
authorXiubo Li <xiubli@redhat.com>
Tue, 28 May 2024 04:20:03 +0000 (12:20 +0800)
committerJos Collin <jcollin@redhat.com>
Thu, 11 Jul 2024 01:36:26 +0000 (07:06 +0530)
Fixes: https://tracker.ceph.com/issues/63265
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit d48b169e40a94b6df578c57bc595187c94ef48f6)

src/mds/Server.cc

index f52d6a0c08f6356aabe3cf6455f42570e1335c2c..32d182ecf5f4aefcf5d4d0f16eea3d838a4a870b 100644 (file)
@@ -4804,7 +4804,7 @@ void Server::handle_client_openc(const MDRequestRef& mdr)
   } else if (mdr->client_request->get_connection()->has_feature(CEPH_FEATURE_REPLY_CREATE_INODE)) {
     dout(10) << "adding ino to reply to indicate inode was created" << dendl;
     // add the file created flag onto the reply if create_flags features is supported
-    encode(newi->ino(), mdr->reply_extra_bl);
+    encode(_inode->ino, mdr->reply_extra_bl);
   }
 
   journal_and_reply(mdr, newi, dn, le, fin);