]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: remove 'fs_name' from MDSRank
authorRamana Raja <rraja@redhat.com>
Tue, 18 May 2021 05:00:29 +0000 (01:00 -0400)
committerRamana Raja <rraja@redhat.com>
Thu, 17 Jun 2021 16:48:59 +0000 (12:48 -0400)
commit75c1c754d14ea300c7123995680a864212104b8c
tree5ee3a3fb01648719bf80a6ceb40088ad86947994
parent5b766a86a6cd66aa29b459f29765849d8292f57b
mds: remove 'fs_name' from MDSRank

There isn't a need to store a file system's name in a MDSRank
object. The MDSRank has a pointer to a MDSMap object, which already
stores the name.

Also, there isn't a need to pass the file system name in the MMDSMap
message. It should be sufficient to pass the MDSMap in the MMDSMap
message as the the file system name is stored in the MDSMap. Pass a
empty string as map_fs_name in the MMDSMap message. It is  simpler than
removing map_fs_name from the message payload altogether.

Fixes: https://tracker.ceph.com/issues/50852
Signed-off-by: Ramana Raja <rraja@redhat.com>
src/mds/MDSDaemon.cc
src/mds/MDSRank.cc
src/mds/MDSRank.h
src/mds/Server.cc
src/messages/MMDSMap.h
src/mon/MDSMonitor.cc