Skip to content

Commit

Permalink
Merge pull request #17691 from amitkumar50/cov-osd-3
Browse files Browse the repository at this point in the history
osd: Initialization of data members

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
  • Loading branch information
yuriw committed Dec 13, 2017
2 parents 6c4285c + de90bd6 commit 230e1e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/osd/ClassHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ClassHandler
ClassHandler *handler;
void *handle;

bool whitelisted;
bool whitelisted = false;

map<string, ClassMethod> methods_map;
map<string, ClassFilter> filters_map;
Expand Down
2 changes: 1 addition & 1 deletion src/osd/PG.h
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ class PG : public DoutPrefixProvider {
bool must_scrub, must_deep_scrub, must_repair;

// Priority to use for scrub scheduling
unsigned priority;
unsigned priority = 0;

// this flag indicates whether we would like to do auto-repair of the PG or not
bool auto_repair;
Expand Down

0 comments on commit 230e1e4

Please sign in to comment.