Skip to content

Commit fa7873e

Browse files
committed
cls/rgw: remove rgw_bucket_dir_entry_meta default ctor
to allow aggregate initialization Signed-off-by: Casey Bodley <[email protected]>
1 parent 5c05291 commit fa7873e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/cls/rgw/cls_rgw_types.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,17 @@ inline std::ostream& operator<<(std::ostream& out, RGWObjCategory c) {
197197
}
198198

199199
struct rgw_bucket_dir_entry_meta {
200-
RGWObjCategory category;
201-
uint64_t size;
200+
RGWObjCategory category = RGWObjCategory::None;
201+
uint64_t size = 0;
202202
ceph::real_time mtime;
203203
std::string etag;
204204
std::string owner;
205205
std::string owner_display_name;
206206
std::string content_type;
207-
uint64_t accounted_size;
207+
uint64_t accounted_size = 0;
208208
std::string user_data;
209209
std::string storage_class;
210-
bool appendable;
211-
212-
rgw_bucket_dir_entry_meta() :
213-
category(RGWObjCategory::None), size(0), accounted_size(0), appendable(false) { }
210+
bool appendable = false;
214211

215212
void encode(ceph::buffer::list &bl) const {
216213
ENCODE_START(7, 3, bl);

0 commit comments

Comments
 (0)