]> 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:47:01 +0000 (11:47 -0500)
commiteba6c8f8c508dcdb2ed0c35a88c472011bd49cc9
treea9dce29aec309dee0f33d3bdbcd54befc56821a2
parentcb81931d12888db2c96f9fbb8ff59daedc8b69f2
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