Skip to content

Commit

Permalink
Merge pull request #11178 from stiopaa1/osd_pg_changeStructPGRecovery…
Browse files Browse the repository at this point in the history
…StatsToClass

osd/PG.h: change PGRecoveryStats struct to class

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Nov 23, 2016
2 parents 354e5bf + f25b156 commit feefd5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osd/PG.h
Expand Up @@ -84,7 +84,7 @@ void intrusive_ptr_release(PG *pg);
typedef boost::intrusive_ptr<PG> PGRef;
#endif

struct PGRecoveryStats {
class PGRecoveryStats {
struct per_state_info {
uint64_t enter, exit; // enter/exit counts
uint64_t events;
Expand All @@ -98,6 +98,7 @@ struct PGRecoveryStats {
map<const char *,per_state_info> info;
Mutex lock;

public:
PGRecoveryStats() : lock("PGRecoverStats::lock") {}

void reset() {
Expand Down

0 comments on commit feefd5e

Please sign in to comment.