]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_object_expirer.cc
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / rgw_object_expirer.cc
index 93258b4208b72dd68c93bfcdafdfe557277d5355..d5e0dceee373757ea0e7f269c6963253a69df461 100644 (file)
@@ -1,5 +1,5 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
-// vim: ts=8 sw=2 smarttab
+// vim: ts=8 sw=2 smarttab ft=cpp
 
 #include <errno.h>
 #include <iostream>
 
 #define dout_subsys ceph_subsys_rgw
 
-static RGWRados *store = NULL;
+static rgw::sal::RGWRadosStore *store = NULL;
 
 class StoreDestructor {
-  RGWRados *store;
+  rgw::sal::RGWRadosStore *store;
 
 public:
-  explicit StoreDestructor(RGWRados *_s) : store(_s) {}
+  explicit StoreDestructor(rgw::sal::RGWRadosStore *_s) : store(_s) {}
   ~StoreDestructor() {
     if (store) {
       RGWStoreManager::close_storage(store);
@@ -87,9 +87,6 @@ int main(const int argc, const char **argv)
     return EIO;
   }
 
-  rgw_user_init(store);
-  rgw_bucket_init(store->meta_mgr);
-
   /* Guard to not forget about closing the rados store. */
   StoreDestructor store_dtor(store);