mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
Merge pull request #17722 from amitkumar50/cov-rgw-6
rgw: Initialization of epoch,len
This commit is contained in:
commit
6bef8e3bcc
@ -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();
|
||||
|
@ -2091,7 +2091,7 @@ public:
|
||||
};
|
||||
|
||||
class RGWPutBucketPolicy : public RGWOp {
|
||||
int len;
|
||||
int len = 0;
|
||||
char *data = nullptr;
|
||||
public:
|
||||
RGWPutBucketPolicy() = default;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user