]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/osd_operations/pg_advance_map: Add splitting as a function
authorAishwarya Mathuria <amathuri@redhat.com>
Wed, 23 Apr 2025 13:21:23 +0000 (13:21 +0000)
committerAishwarya Mathuria <amathuri@redhat.com>
Tue, 27 May 2025 07:59:01 +0000 (07:59 +0000)
commit7c19667d852211d27dba7a48cc8aa45af47ec45b
tree84d966752b722b5225694b69b56e4ef986370552
parent6abbcf6038a04bc4bd7949eee06bda8f0f8d9d91
crimson/osd/osd_operations/pg_advance_map: Add splitting as a function

As we initiate pg splitting as part of the PGAdvanceMap workflow, it is not required
to maintain it as a separate osd_operation.
A new function in PGAdvanceMap - split_pg(), will now take care of the splitting workflow
if we detect split children in an OSD map.

Since we do not follow the same queuing system as classical OSD in crimson, we will not
need to maintain pg_num_history. This makes the splitting check simpler.
With most of the splitting code being part of PGAdvanceMap, it makes sense to have the
splitting check there as well and leave broadcast_map_to_pgs untouched.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/crimson/osd/osd_operations/pg_advance_map.cc
src/crimson/osd/osd_operations/pg_advance_map.h
src/crimson/osd/shard_services.cc
src/crimson/osd/shard_services.h