]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_object_expirer_core.h
update sources to v12.1.1
[ceph.git] / ceph / src / rgw / rgw_object_expirer_core.h
index 813eca3f939a17724dacca94acd93172f76c6f7b..26751655d894085c07ab76a72b2278ba4a5dd27c 100644 (file)
@@ -65,12 +65,15 @@ protected:
     void stop();
   };
 
-  OEWorker *worker;
+  OEWorker *worker{nullptr};
   std::atomic<bool> down_flag = { false };
 
 public:
   explicit RGWObjectExpirer(RGWRados *_store)
-    : store(_store) {
+    : store(_store), worker(NULL) {
+  }
+  ~RGWObjectExpirer() {
+    stop_processor();
   }
 
   int garbage_single_object(objexp_hint_entry& hint);