]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix `fs set down` to adjust max_mds only when cluster is not down
authorchungfengz <chungfengz@synology.com>
Wed, 10 Jul 2024 04:07:56 +0000 (04:07 +0000)
committerVenky Shankar <vshankar@redhat.com>
Tue, 10 Sep 2024 12:05:54 +0000 (17:35 +0530)
commite64a66bfe45c6e4407d0fe97a5fa3473e5164e32
treea7b7abe6380b37e2a8b0ad28532f342edd48cf8b
parent0af5bca802ad7490d3843a66b45fdf7c7baf4342
mon: fix `fs set down` to adjust max_mds only when cluster is not down

Applying `fs set down false` on an up cluster will set the cluster's max_mds to 1, regardless of the cluster's current max_mds.
`fs set down false` should only change max_mds when the cluster was set to down. Otherwise, the cluster should remain unchanged.

Fixes: https://tracker.ceph.com/issues/66960
Signed-off-by: chungfengz <chungfengz@synology.com>
(cherry picked from commit 6bfce64f7e97726d27b872077d6b9addab87ab64)

 Conflicts:
src/mon/FSCommands.cc

Minor conflict to use `fs->mds_map...` instead of `fsp->get_mds_map()...`
and the use of modify_filesystem() helper.
src/mon/FSCommands.cc