From 0db3aa0bb0e15a4fba8b94e0a7ee3246404bc958 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 28 Jun 2021 13:24:41 +0800 Subject: [PATCH] pybind/mgr/pg_autoscaler: do not index pool_root with pool_name pool_root is indexed by pool_id, and we never index it with pool_name. Signed-off-by: Kefu Chai (cherry picked from commit 83f841295d86d10aadf3b4dff4e3eaa80fe139c3) --- src/pybind/mgr/pg_autoscaler/module.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pybind/mgr/pg_autoscaler/module.py b/src/pybind/mgr/pg_autoscaler/module.py index 0f35b22d211ec..2649f68e52e62 100644 --- a/src/pybind/mgr/pg_autoscaler/module.py +++ b/src/pybind/mgr/pg_autoscaler/module.py @@ -418,8 +418,6 @@ class PgAutoscaler(MgrModule): cr_name = crush_map.get_rule_by_id(p['crush_rule'])['rule_name'] root_id = int(crush_map.get_rule_root(cr_name)) - pool_root[pool_name] = root_id - capacity = root_map[root_id].capacity if capacity == 0: self.log.debug('skipping empty subtree %s', cr_name) -- 2.39.5