]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
src/osd/PeeringState.cc: update last_unstale properly
authorKamoltat <ksirivad@redhat.com>
Tue, 21 Nov 2023 18:55:29 +0000 (18:55 +0000)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 24 Apr 2025 14:11:18 +0000 (19:41 +0530)
commit5485e0028522f4720a737c27682cae4bcb0fa09a
tree28422247f7f7a6162e4c73c50913abeb720ef440
parentcad8cd38532ccc5626181816153f716019435c2b
src/osd/PeeringState.cc: update last_unstale properly

Problem:

When we update the `pg_stat` we don't
check whether the pg state is in `stale`.
Therefore, the attribute `last_unstale`
will always get updated even if the pg
state actually contains `stale`.

Solution:

Place a condition to only update
the attribute `last_unstale` when
we the pg truly doesn't have `stale`
in its state.

Fixes: https://tracker.ceph.com/issues/67777
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/osd/PeeringState.cc