]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw: add missing members initialization 15493/head
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 20:07:42 +0000 (13:07 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 22:01:40 +0000 (15:01 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/cls/rgw/cls_rgw_ops.h
src/cls/rgw/cls_rgw_types.h

index fd1a12e4cbc5557b7f5cd20c931525595f4afeee..d2b5fb68fb95ae59af965dc9669b6a76c6b468fa 100644 (file)
@@ -1167,7 +1167,7 @@ struct cls_rgw_reshard_add_op {
 WRITE_CLASS_ENCODER(cls_rgw_reshard_add_op)
 
 struct cls_rgw_reshard_list_op {
-  uint32_t max;
+  uint32_t max{0};
   string marker;
 
   cls_rgw_reshard_list_op() {}
@@ -1193,7 +1193,7 @@ WRITE_CLASS_ENCODER(cls_rgw_reshard_list_op)
 
 struct cls_rgw_reshard_list_ret {
   list<cls_rgw_reshard_entry> entries;
-  bool is_truncated;
+  bool is_truncated{false};
 
   cls_rgw_reshard_list_ret() {}
 
index 59b22b50827ae1bf8d537b28ddd413250844b30e..32273e45629f2e42fbbf30c0bcd160019ecbc1a9 100644 (file)
@@ -1073,8 +1073,8 @@ struct cls_rgw_reshard_entry
   string bucket_name;
   string bucket_id;
   string new_instance_id;
-  uint32_t old_num_shards;
-  uint32_t new_num_shards;
+  uint32_t old_num_shards{0};
+  uint32_t new_num_shards{0};
 
   cls_rgw_reshard_entry() {}