]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 16 May 2023 20:17:33 +0000 (22:17 +0200)
... 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 d3897cc67203a01473ef43fb663bd2332b5467ee..395cbdc9fa92145be21cb53a067060b012888e09 100644 (file)
@@ -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)