private:
public:
- RGWBucket() : store(NULL), failure(false) {}
+ RGWBucket() : store(NULL), handle(NULL), failure(false) {}
int init(RGWRados *storage, RGWBucketAdminOpState& op_state);
int create_bucket(string bucket_str, string& user_id, string& display_name);
atomic_t err_code;
Throttle throttle;
- get_obj_data(CephContext *_cct) : cct(_cct),
- total_read(0), lock("get_obj_data"), data_lock("get_obj_data::data_lock"),
- throttle(cct, "get_obj_data", cct->_conf->rgw_get_obj_window_size, false) {}
+ get_obj_data(CephContext *_cct)
+ : cct(_cct),
+ rados(NULL), ctx(NULL),
+ total_read(0), lock("get_obj_data"), data_lock("get_obj_data::data_lock"),
+ client_cb(NULL),
+ throttle(cct, "get_obj_data", cct->_conf->rgw_get_obj_window_size, false) {}
virtual ~get_obj_data() { }
void set_cancelled(int r) {
cancelled.set(1);
RGWAccessKeyPool::RGWAccessKeyPool(RGWUser* usr)
{
user = usr;
+ swift_keys = NULL;
+ access_keys = NULL;
if (!user) {
keys_allowed = false;
+ store = NULL;
return;
}
RGWSubUserPool::RGWSubUserPool(RGWUser *usr)
{
- if (!usr)
- subusers_allowed = false;
-
- subusers_allowed = true;
-
+ subusers_allowed = (usr != NULL);
store = usr->get_store();
user = usr;
+ subuser_map = NULL;
}
RGWSubUserPool::~RGWSubUserPool()
RGWUserCapPool::RGWUserCapPool(RGWUser *usr)
{
user = usr;
-
- if (!user) {
- caps_allowed = false;
- }
+ caps = NULL;
+ caps_allowed = (user != NULL);
}
RGWUserCapPool::~RGWUserCapPool()
return 0;
}
-RGWUser::RGWUser() : caps(this), keys(this), subusers(this)
+RGWUser::RGWUser() : store(NULL), info_stored(false), caps(this), keys(this), subusers(this)
{
init_default();
}