]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrStatMonitor.cc: cleanup handle_conf_change 64389/head
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 26 Jun 2025 12:27:45 +0000 (17:57 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Tue, 8 Jul 2025 17:10:42 +0000 (22:40 +0530)
commit44331e20be06a93ec0a67dbaec4a994dde8f8708
treedf3ec1de7e9742b828ef298dd8484837a0af4086
parent924c4f73226949cf148878ac652004020bef83d4
mon/MgrStatMonitor.cc: cleanup handle_conf_change

Prior to this change, we were using a flag value,
`reset_availability_last_uptime_downtime_val` to record the
timestamp to which the last_uptime and last_downtime should be
updated to. This was originally done so to avoid the values
being overwritten by a paxos update.

Now, instead of using an intermediate value, we are immediately
clearing the last_uptime and last_downtime values in
pending_pool_availability object. Since we are updating the values
in the pending object, we will not lost this information due to
an incoming paxos update.

Fixes: https://tracker.ceph.com/issues/71857
Signed-off-by: Shraddha Agrawal <shraddhaag@ibm.com>
(cherry picked from commit 950d911b4b28ffaffc2d63cfc15d4edabce2b533)
src/mon/MgrStatMonitor.cc
src/mon/MgrStatMonitor.h