]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: cached osd_map pop pg_temp 64805/head
authorNitzan Mordechai <nmordech@ibm.com>
Thu, 4 Jun 2026 06:52:18 +0000 (06:52 +0000)
committerNitzan Mordechai <nmordech@ibm.com>
Thu, 4 Jun 2026 06:52:35 +0000 (06:52 +0000)
commit7faa75163d7f339e02a4f696d975759b713325ce
tree1cc5d130811fada2c05d42b11886b7868f1aab9a
parentf1834867784de18e781db677ef4ab5a3c266d473
mgr/dashboard: cached osd_map pop pg_temp

get('osd_map') returns the cached object directly, so del and key
assignments were silently corrupting the cache for subsequent callers.
Take a shallow copy before modifying, and use pop() instead of del in
case the cache was already corrupted.

Fixes: https://tracker.ceph.com/issues/72447
Signed-off-by: Nitzan Mordechai <nmordec@ibm.com>
src/pybind/mgr/dashboard/controllers/health.py