]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/cloud-restore: Correct the restore svc shutdown order 68452/head
authorSoumya Koduri <skoduri@redhat.com>
Fri, 17 Apr 2026 11:12:13 +0000 (16:42 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Fri, 17 Apr 2026 13:12:15 +0000 (18:42 +0530)
Stop restore worker threads prior to obj_expirer and other services
(svc) shutdown which they rely on.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index 505a43a7940d2f819fa9d14c60d634b02e333b3b..504fd9b2e58d58f89bbdbd8444a1dd47b9cad0a8 100644 (file)
@@ -1127,6 +1127,11 @@ void RGWRados::finalize()
   }
   delete sync_tracer;
   
+  if (use_restore_thread) {
+    restore->stop_processor();
+  }
+  restore = NULL;
+
   delete lc;
   lc = NULL; 
 
@@ -1168,10 +1173,6 @@ void RGWRados::finalize()
     rgw::bucketlogging::shutdown();
   }
 
-  if (use_restore_thread) {
-    restore->stop_processor();
-  }
-  restore = NULL;
   delete index_completion_manager;
 }