From: Patrick Donnelly Date: Mon, 14 Sep 2020 19:26:15 +0000 (-0700) Subject: mds/FSMap: do not set legacy_client_fscid after filtering X-Git-Tag: v16.1.0~1050^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37148%2Fhead;p=ceph.git mds/FSMap: do not set legacy_client_fscid after filtering Various code expects that there is only one file system if this field is set. This is not meant to be set except as a stop-gap when upgrading Ceph with "legacy" file systems. Fixes: 811e48d6ffd841ecd93a57eb00c6aceae476f4f8 Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/FSMap.h b/src/mds/FSMap.h index 84e98de698432..dc9fac4a50c7a 100644 --- a/src/mds/FSMap.h +++ b/src/mds/FSMap.h @@ -263,8 +263,6 @@ public: mds_roles.erase(r.first); } } - - legacy_client_fscid = filesystems.begin()->first; } void set_enable_multiple(const bool v)