]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: create default constructors for some structs
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 30 Dec 2011 22:18:40 +0000 (14:18 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 30 Dec 2011 22:31:16 +0000 (14:31 -0800)
this will silence valgrind a bit

src/rgw/rgw_cache.h
src/rgw/rgw_common.h

index ea0b6537f0833b3d5dc54c3e464a25a0d9536ca2..fdfbe024ed5b246c68ca4d1bf51e67ef526f9a21 100644 (file)
@@ -21,6 +21,8 @@ struct ObjectMetaInfo {
   uint64_t size;
   time_t mtime;
 
+  ObjectMetaInfo() : size(0), mtime(0) {}
+
   void encode(bufferlist& bl) const {
     __u8 struct_v = 1;
     ::encode(struct_v, bl);
@@ -76,6 +78,8 @@ struct RGWCacheNotifyInfo {
   off_t ofs;
   string ns;
 
+  RGWCacheNotifyInfo() : op(0), ofs(0) {}
+
   void encode(bufferlist& obl) const {
     __u8 struct_v = 1;
     ::encode(struct_v, obl);
index 7aff456bf04db27a6355cef6c6ba7215dd9fc09c..8d6ac395f261a51d0fba4800cc3f1322cb9393d3 100644 (file)
@@ -600,6 +600,8 @@ struct RGWBucketEnt {
   time_t mtime;
   uint64_t count;
 
+  RGWBucketEnt() : size(0), size_rounded(0), mtime(0), count(0) {}
+
   void encode(bufferlist& bl) const {
     __u8 struct_v = 4;
     ::encode(struct_v, bl);