]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: notify the thread waiting on pending snapshot
authorRamana Raja <rraja@redhat.com>
Tue, 17 Jan 2023 03:04:08 +0000 (22:04 -0500)
committerRamana Raja <rraja@redhat.com>
Tue, 8 Aug 2023 20:26:07 +0000 (16:26 -0400)
... requests to be completed.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 38a7e3715f0cee225aa49f3331d85ad37e2b7422)

src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py

index af32a77aaad29efc8026e25ce16b6dac22b33599..71dd40484937a43ffb3db1cce310c59b6614d996 100644 (file)
@@ -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)