From: Xiubo Li Date: Thu, 18 Apr 2024 10:09:17 +0000 (+0800) Subject: mds: remove the incorrect std::move for fsname and path X-Git-Tag: v20.0.0~2029^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2ca75522fdce3f551272b8b19371737800ed7526;p=ceph.git mds: remove the incorrect std::move for fsname and path When opening the sessions mds auth grants could be copied many times, std::move here is incorrect and will leave the origin as not usable. Signed-off-by: Xiubo Li --- diff --git a/src/mds/MDSAuthCaps.h b/src/mds/MDSAuthCaps.h index 2b696085d5b91..26958b49acd34 100644 --- a/src/mds/MDSAuthCaps.h +++ b/src/mds/MDSAuthCaps.h @@ -118,8 +118,8 @@ struct MDSCapMatch { MDSCapMatch(const std::string& fsname_, const std::string& path_, bool root_squash_, int64_t uid_=MDS_AUTH_UID_ANY, const std::vector& gids_={}) { - fs_name = std::move(fsname_); - path = std::move(path_); + fs_name = fsname_; + path = path_; root_squash = root_squash_; uid = (uid_ == 0) ? -1 : uid_; gids = gids_;