Skip to content

Commit

Permalink
Merge pull request #17722 from amitkumar50/cov-rgw-6
Browse files Browse the repository at this point in the history
rgw: Initialization of epoch,len
  • Loading branch information
mattbenjamin committed Oct 23, 2017
2 parents 33191d2 + 17df8c9 commit 6bef8e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/rgw/rgw_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/rgw/rgw_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,7 @@ class RGWGetObjLayout : public RGWOp {
};

class RGWPutBucketPolicy : public RGWOp {
int len;
int len = 0;
char *data = nullptr;
public:
RGWPutBucketPolicy() = default;
Expand Down
2 changes: 1 addition & 1 deletion src/rgw/rgw_rados.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6bef8e3

Please sign in to comment.