Merge pull request #17722 from amitkumar50/cov-rgw-6

rgw: Initialization of epoch,len
This commit is contained in:
Matt Benjamin 2017-10-23 17:00:37 -04:00 committed by GitHub
commit 6bef8e3bcc
3 changed files with 4 additions and 2 deletions

View File

@ -265,6 +265,8 @@ namespace rgw {
: fs(_fs), bucket(nullptr), parent(nullptr), variant_type{directory()},
depth(0), flags(FLAG_NONE)
{
fh.fh_hk.bucket = 0;
fh.fh_hk.object = 0;
/* root */
fh.fh_type = RGW_FS_TYPE_DIRECTORY;
variant_type = directory();

View File

@ -2091,7 +2091,7 @@ public:
};
class RGWPutBucketPolicy : public RGWOp {
int len;
int len = 0;
char *data = nullptr;
public:
RGWPutBucketPolicy() = default;

View File

@ -958,7 +958,7 @@ struct RGWRawObjState {
bool exists{false};
uint64_t size{0};
ceph::real_time mtime;
uint64_t epoch;
uint64_t epoch{0};
bufferlist obj_tag;
bool has_data{false};
bufferlist data;