From: Ramana Raja Date: Tue, 17 Jan 2023 03:04:08 +0000 (-0500) Subject: mgr/rbd_support: notify the thread waiting on pending snapshot X-Git-Tag: v16.2.14~11^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c073cf2fd66688ff84e34bcf0a9a385cea1243fb;p=ceph.git mgr/rbd_support: notify the thread waiting on pending snapshot ... requests to be completed. Signed-off-by: Ramana Raja (cherry picked from commit 38a7e3715f0cee225aa49f3331d85ad37e2b7422) --- diff --git a/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py b/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py index af32a77aaad2..71dd40484937 100644 --- a/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py +++ b/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py @@ -264,6 +264,7 @@ class CreateSnapshotRequests: with self.lock: self.pending.remove(image_spec) + self.condition.notify() if not self.queue: return image_spec = self.queue.pop(0)