mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
rgw: create default constructors for some structs
this will silence valgrind a bit
This commit is contained in:
parent
6687ccf5dc
commit
949f24d560
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user