]> git.apps.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:37:45 +0000 (07:07 +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 6e429f7dc242f36ba9da47b2dc261376bc7f41b9..ca083118bd2d437300685ea18226b6c3192f1f82 100644 (file)
@@ -4793,7 +4793,7 @@ void Server::handle_client_openc(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);