*/
rgw_bucket() { }
- rgw_bucket(const cls_user_bucket& b) {
- name = b.name;
- data_pool = b.data_pool;
- data_extra_pool = b.data_extra_pool;
- index_pool = b.index_pool;
- marker = b.marker;
- bucket_id = b.bucket_id;
- }
+ rgw_bucket(const cls_user_bucket& b) : name(b.name), data_pool(b.data_pool),
+ data_extra_pool(b.data_extra_pool),
+ index_pool(b.index_pool), marker(b.marker),
+ bucket_id(b.bucket_id) {}
rgw_bucket(const char *n) : name(n) {
assert(*n == '.'); // only rgw private buckets should be initialized without pool
data_pool = index_pool = n;
RGWBucketEnt() : size(0), size_rounded(0), creation_time(0), count(0) {}
- RGWBucketEnt(const cls_user_bucket_entry& e) {
- bucket = e.bucket;
- size = e.size;
- size_rounded = e.size_rounded;
- creation_time = e.creation_time;
- count = e.count;
- }
+ RGWBucketEnt(const cls_user_bucket_entry& e) : bucket(e.bucket),
+ size(e.size),
+ size_rounded(e.size_rounded),
+ creation_time(e.creation_time),
+ count(e.count) {}
void convert(cls_user_bucket_entry *b) {
bucket.convert(&b->bucket);