From f25b156fbd48231069c9ddfc7ed902d8a12c6017 Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Sun, 18 Sep 2016 19:14:53 +0100 Subject: [PATCH] osd/PG.h: change PGRecoveryStats struct to class Signed-off-by: Michal Jarzabek --- src/osd/PG.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/PG.h b/src/osd/PG.h index 1cf85d225866..e0bdf1d50a9c 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -83,7 +83,7 @@ void intrusive_ptr_release(PG *pg); typedef boost::intrusive_ptr PGRef; #endif -struct PGRecoveryStats { +class PGRecoveryStats { struct per_state_info { uint64_t enter, exit; // enter/exit counts uint64_t events; @@ -97,6 +97,7 @@ struct PGRecoveryStats { map info; Mutex lock; + public: PGRecoveryStats() : lock("PGRecoverStats::lock") {} void reset() { -- 2.47.3