]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MgrStatMonitor.cc: do not update score when disabled
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 22 May 2025 08:20:57 +0000 (13:50 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 19 Jun 2025 11:52:34 +0000 (17:22 +0530)
commitf9efe0b17348a7be5f4ebe00a90f5c0e88aabada
treea09b52cf91d45afdaf54f459ecd902fb07061a00
parent431d7323911a45a3311b7fc3958d0d647124e1b7
mon/MgrStatMonitor.cc: do not update score when disabled

This commit adds changes to ensure the availability score
tracking is not updated when the feature is disabled. We
will preserve the score calculated before the feature is
turned off and start updating it again when the feature
is enabled.

Fixes: https://tracker.ceph.com/issues/71494
Signed-off-by: Shraddha Agrawal <shraddhaag@ibm.com>
(cherry picked from commit 017c9b9f4fa0d3286d52b7acb7df912327b1f836)
src/mon/MgrStatMonitor.cc
src/mon/OSDMonitor.cc