From ad4b2a0cb50c98c63c5c3b38ba699c08b63ad401 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 14 Sep 2020 12:26:15 -0700 Subject: [PATCH] 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 --- src/mds/FSMap.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mds/FSMap.h b/src/mds/FSMap.h index 84e98de6984..dc9fac4a50c 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) -- 2.39.5