]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/messages/MMgrReport.h
Import ceph 15.2.8
[ceph.git] / ceph / src / messages / MMgrReport.h
index c1a55d880cf6084a7174c3378296ae11f40a1570..767ee775d22a532ff05cc33493c1c557a68196ce 100644 (file)
@@ -61,12 +61,16 @@ public:
     decode(path, p);
     decode(description, p);
     decode(nick, p);
-    decode((uint8_t&)type, p);
+    uint8_t raw_type;
+    decode(raw_type, p);
+    type = (enum perfcounter_type_d)raw_type;
     if (struct_v >= 2) {
       decode(priority, p);
     }
     if (struct_v >= 3) {
-      decode((uint8_t&)unit, p);
+      uint8_t raw_unit;
+      decode(raw_unit, p);
+      unit = (enum unit_t)raw_unit;
     }
     DECODE_FINISH(p);
   }