From ddd741b393f16bdc0389d1b6d9fb1d4078b4e524 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Mon, 25 Mar 2024 13:17:43 +0000 Subject: [PATCH] osd/OSD: Add pg_num_history comment Signed-off-by: Matan Breizman --- src/osd/OSD.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osd/OSD.h b/src/osd/OSD.h index e5f3510e2a523..1ad1b509fc1c7 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"); -- 2.39.5