From: Matan Breizman Date: Mon, 25 Mar 2024 13:17:43 +0000 (+0000) Subject: osd/OSD: Add pg_num_history comment X-Git-Tag: v20.0.0~1488^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ddd741b393f16bdc0389d1b6d9fb1d4078b4e524;p=ceph.git osd/OSD: Add pg_num_history comment Signed-off-by: Matan Breizman --- diff --git a/src/osd/OSD.h b/src/osd/OSD.h index e5f3510e2a5..1ad1b509fc1 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -1666,6 +1666,12 @@ protected: return osdmap ? osdmap->get_epoch() : 0; } + /* When handling OSDMaps pg_num_history is used to + * track any changes to number of PGs of each pool + * to be used later in order to identify PG splits and merges. + * See: OSD::track_pools_and_pg_num_changes + * and OSDService::identify_splits_and_merges. + */ pool_pg_num_history_t pg_num_history; ceph::shared_mutex map_lock = ceph::make_shared_mutex("OSD::map_lock");