]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/mon/PGMap.cc: init pool_availability
authorKamoltat <ksirivad@redhat.com>
Thu, 26 Oct 2023 19:08:37 +0000 (19:08 +0000)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 24 Apr 2025 14:10:24 +0000 (19:40 +0530)
commit06e22e7f39584ea7b50b7ca2cab4f502815fa9cf
tree4e5ad95b2d2f309e98eb565237c22cdf83062855
parentdc0ebcaa46a2412a88ed1910c96b46bcfdb60727
src/mon/PGMap.cc: init pool_availability

Added PoolAvailability Struct

Modified PGMap.cc to include a k,v map:
`pool_availability`.

The key being the `poolid` and value
is `PoolAvailability`

Init the function:
`PGMap::get_unavailable_pg_in_pool_map()`
to identify and aggregate all the PGs we
mark as `unavailable` as well as the pool
that associates with the unavailable PG.

Also, included `pool_availability`
to `PGMapDigest::dump()`.

Fixes: https://tracker.ceph.com/issues/67777
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/mon/MgrStatMonitor.cc
src/mon/MgrStatMonitor.h
src/mon/OSDMonitor.cc
src/mon/PGMap.cc
src/mon/PGMap.h
src/mon/mon_types.h
src/tools/ceph-dencoder/osd_types.h