]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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)
committerxiubli <xiubli@localhost.localdomain>
Wed, 5 Jun 2024 00:44:12 +0000 (08:44 +0800)
Fixes: https://tracker.ceph.com/issues/63265
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/Server.cc

index e41342bf2b75fca92e0ac9f322a69f66082404d2..06bdd6c424210060bf69ebb2db9efb181e49b7aa 100644 (file)
@@ -4811,7 +4811,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);