Merge pull request #17772 from amitkumar50/cov-misc-3

client,osd,test: Initialize fuse_req_key,snap,who,seq

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Kefu Chai 2017-11-22 14:42:58 +08:00 committed by GitHub
commit 80da199dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ public:
ceph::unordered_map<uint64_t,int> snap_stag_map;
ceph::unordered_map<int,uint64_t> stag_snap_map;
pthread_key_t fuse_req_key;
pthread_key_t fuse_req_key = 0;
void set_fuse_req(fuse_req_t);
fuse_req_t get_fuse_req();

View File

@ -774,8 +774,8 @@ struct Payload {
PING = 0,
PONG = 1,
};
uint8_t who;
uint64_t seq;
uint8_t who = 0;
uint64_t seq = 0;
bufferlist data;
Payload(Who who, uint64_t seq, const bufferlist& data)

View File

@ -2314,7 +2314,7 @@ public:
string oid;
bool dirty;
ObjectDesc old_value;
int snap;
int snap = 0;
ceph::shared_ptr<int> in_use;
IsDirtyOp(int n,