]> 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>
Thu, 22 Feb 2024 16:44:28 +0000 (11:44 -0500)
commitea3a567f7f035aa439b6d5541d69f3781f47bd50
tree9f065cf8db51b18091a9953f92c8ec098668df53
parent8cd25c3624c15e3ce2a273cca2206d9f80f71b40
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>
qa/workunits/rbd/rbd_mirror_helpers.sh