]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: used fixed size int for perf counter prio
authorJohn Spray <john.spray@redhat.com>
Fri, 1 Sep 2017 16:01:35 +0000 (12:01 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Nov 2017 23:03:24 +0000 (23:03 +0000)
...to avoid any ambiguity in allowed range and
make clear how to encode it down the wire.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit ba08fc1008d17aa7a5f285ea2705705ce1a0bda0)

src/common/perf_counters.h

index e831b73ad68233b4e964fba74fadc4d7fc1b6227..992ee534c136ba0e7de6cb933759ca4ed2a15be7 100644 (file)
@@ -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<uint64_t> u64 = { 0 };
     std::atomic<uint64_t> avgcount = { 0 };