From: Michal Jarzabek Date: Sun, 18 Sep 2016 18:14:53 +0000 (+0100) Subject: osd/PG.h: change PGRecoveryStats struct to class X-Git-Tag: v11.1.0~185^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f25b156fbd48231069c9ddfc7ed902d8a12c6017;p=ceph.git osd/PG.h: change PGRecoveryStats struct to class Signed-off-by: Michal Jarzabek --- 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() {