]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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:49:01 +0000 (11:49 -0500)
commit6dd500c146ac050c03f9e6d9690a0798066a0612
treedc589da6678713e03e6ab000a6d0c173f099c276
parentc0f02e608ed955f887728ffa27c686f52f9fd400
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