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: v13.0.1~707^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ba08fc1008d17aa7a5f285ea2705705ce1a0bda0;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 --- diff --git a/src/common/perf_counters.h b/src/common/perf_counters.h index 507d09102de..ec81de4f359 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 };