From: John Spray Date: Fri, 1 Sep 2017 16:01:35 +0000 (-0400) Subject: common: used fixed size int for perf counter prio X-Git-Tag: v12.2.2~61^2~68 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ce4a950975188051b6a3e6cb366c2fb23f0e88f;p=ceph.git common: used fixed size int for perf counter prio ...to avoid any ambiguity in allowed range and make clear how to encode it down the wire. Signed-off-by: John Spray (cherry picked from commit ba08fc1008d17aa7a5f285ea2705705ce1a0bda0) --- diff --git a/src/common/perf_counters.h b/src/common/perf_counters.h index e831b73ad682..992ee534c136 100644 --- a/src/common/perf_counters.h +++ b/src/common/perf_counters.h @@ -96,7 +96,7 @@ public: const char *name; const char *description; const char *nick; - int prio = 0; + uint8_t prio = 0; enum perfcounter_type_d type; std::atomic u64 = { 0 }; std::atomic avgcount = { 0 };