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: v18.1.0~95^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a159fc6398d3707f1ffa313fa079d473342c0df;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 d3897cc67203..395cbdc9fa92 100644 --- a/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py +++ b/src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py @@ -288,6 +288,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)