]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/vol: don't define progress bar ID repeatedly 60027/head
authorRishabh Dave <ridave@redhat.com>
Fri, 27 Sep 2024 08:20:29 +0000 (13:50 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 27 Sep 2024 08:31:40 +0000 (14:01 +0530)
commit3482ebcd3c7fba37b40b91428f53880d66e4c86f
tree342be71919a0530ceef392d035cafac9c6e248a6
parent327d209151bd40cbce8ab0444d59829d75f66b9b
mgr/vol: don't define progress bar ID repeatedly

Orignally, when the feature was in development, IDs for clone progress
bars were set to randomly generated UUID strings. But, eventually, it
was decided to assign fixed strings to them. Unlike UUIDs, these strings
stay the same even when progress bars are destroyed and re-created.
Therefore, instead of re-assigning the same strings every time
initiate_reporting() is called, move them to __init__() so that both the
IDs are defined only once.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/mgr/volumes/fs/stats_util.py