]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrStatMonitor.cc: cleanup handle_conf_change 64004/head
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 26 Jun 2025 12:27:45 +0000 (17:57 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 3 Jul 2025 09:39:40 +0000 (15:09 +0530)
commit950d911b4b28ffaffc2d63cfc15d4edabce2b533
tree864ec871dd2afa32b4e1d4b541dee513213476b9
parentda4f0cfc18b7ecd4d0141217bb0dee13d6263db0
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>
src/mon/MgrStatMonitor.cc
src/mon/MgrStatMonitor.h