rgw: create default constructors for some structs

this will silence valgrind a bit
This commit is contained in:
Yehuda Sadeh 2011-12-30 14:18:40 -08:00
parent 6687ccf5dc
commit 949f24d560
2 changed files with 6 additions and 0 deletions

View 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);

View 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);