]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/standalone/scrub: improve build_pg_dicts() performance
authorRonen Friedman <rfriedma@redhat.com>
Wed, 6 Aug 2025 11:42:16 +0000 (06:42 -0500)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 6 Aug 2025 11:46:14 +0000 (06:46 -0500)
commiteb5be7cccaa44320c2ddb2fe259e8ef956fc7f16
tree87ae030412e3d193582395caa009e30ff54e160c
parent022179f62ecb4046a92a2bc789f85c9578ee465f
test/standalone/scrub: improve build_pg_dicts() performance

build_pg_dicts() is used to construct a set of dictionaries
(PG to Primary OSD, PG to Acting OSDs, etc.)
from the output of 'ceph pg dump'.  The original code
wasn't very efficient. So much so, that when used in a new
test that creates a large cluster, its run time was
prohibitively long.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
qa/standalone/scrub/scrub-helpers.sh