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: v17.2.7~371^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8d985b95c3b1bcb292f94895cb8a6bd4f25149a9;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 a786040b4488..1dbbe58de57c 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)