// -*- 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);
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);