]> git.apps.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>
Thu, 11 May 2023 22:46:26 +0000 (18:46 -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 a786040b448831270e3be64fa7f43a68f784e1e5..1dbbe58de57cb2807aeb64cc772a9f25ccaab58e 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)