Skip to content

Commit ddd741b

Browse files
committed
osd/OSD: Add pg_num_history comment
Signed-off-by: Matan Breizman <[email protected]>
1 parent 791614e commit ddd741b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/osd/OSD.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,12 @@ class OSD : public Dispatcher,
16661666
return osdmap ? osdmap->get_epoch() : 0;
16671667
}
16681668

1669+
/* When handling OSDMaps pg_num_history is used to
1670+
* track any changes to number of PGs of each pool
1671+
* to be used later in order to identify PG splits and merges.
1672+
* See: OSD::track_pools_and_pg_num_changes
1673+
* and OSDService::identify_splits_and_merges.
1674+
*/
16691675
pool_pg_num_history_t pg_num_history;
16701676

16711677
ceph::shared_mutex map_lock = ceph::make_shared_mutex("OSD::map_lock");

0 commit comments

Comments
 (0)