]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/workunits: make wait_for_status_in_pool_dir() reentrant
authorRamana Raja <rraja@redhat.com>
Fri, 9 Feb 2024 00:32:37 +0000 (19:32 -0500)
committerRamana Raja <rraja@redhat.com>
Mon, 26 Feb 2024 16:48:10 +0000 (11:48 -0500)
commit66b319598ccbade7ca77be481c32e5341d6df0fe
tree620bbec610d413567edf730bc2ac956622da3a62
parent0aa0def2fae621c71ac51ff72da1ef030d42c57b
qa/workunits: make wait_for_status_in_pool_dir() reentrant

In rbd_mirror_helpers.sh, the `wait_for_status_in_pool_dir()` helper
stored `mirror image status` and `mirror pool status` command outputs
in files that could be shared over successive calls or calls from
multiple threads. Instead store the command outputs in local variables
to make `wait_for_status_in_pool_dir()` reentrant.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit ea3a567f7f035aa439b6d5541d69f3781f47bd50)
qa/workunits/rbd/rbd_mirror_helpers.sh