Commit 5485e00
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 <[email protected]>1 parent cad8cd3 commit 5485e00
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4240 | 4240 | | |
4241 | 4241 | | |
4242 | 4242 | | |
4243 | | - | |
| 4243 | + | |
| 4244 | + | |
4244 | 4245 | | |
4245 | 4246 | | |
4246 | 4247 | | |
| |||
0 commit comments