]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgwlc: wait for WorkQ threads on shutdown
authorMark Kogan <mkogan@redhat.com>
Thu, 14 May 2020 10:31:33 +0000 (13:31 +0300)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 14 May 2020 15:38:17 +0000 (11:38 -0400)
Fixes: https://tracker.ceph.com/issues/43841
Signed-off-by: Mark Kogan <mkogan@redhat.com>
src/rgw/rgw_lc.cc

index 3d918e18aa23cab9cfe4a6c658872ed1fa599d28..055223d499b89c90d2be668775fd638a5e703900 100644 (file)
@@ -775,6 +775,12 @@ public:
       ix(0)
     {}
 
+  ~WorkPool() {
+    for (auto& wq : wqs) {
+      wq.join();
+    }
+  }
+
   void setf(WorkQ::work_f _f) {
     for (auto& wq : wqs) {
       wq.setf(_f);