]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: fixes compiler error because of atomic_t to <atomic>
authorJesse Williamson <jwilliamson@suse.de>
Wed, 24 May 2017 11:36:44 +0000 (04:36 -0700)
committerJesse Williamson <jwilliamson@suse.de>
Thu, 1 Jun 2017 22:36:29 +0000 (15:36 -0700)
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
src/mgr/MgrClient.cc

index 45d2707af25d2c46de21a9380dc1e3080a0f9f8b..0b554402bf7d4184229c0473cd4dccc1ced4815a 100644 (file)
@@ -236,10 +236,10 @@ void MgrClient::send_report()
        session->declared.insert(path);
       }
 
-      ::encode(static_cast<uint64_t>(data.u64.read()), report->packed);
+      ::encode(static_cast<uint64_t>(data.u64), report->packed);
       if (data.type & PERFCOUNTER_LONGRUNAVG) {
-        ::encode(static_cast<uint64_t>(data.avgcount.read()), report->packed);
-        ::encode(static_cast<uint64_t>(data.avgcount2.read()), report->packed);
+        ::encode(static_cast<uint64_t>(data.avgcount), report->packed);
+        ::encode(static_cast<uint64_t>(data.avgcount2), report->packed);
       }
     }
     ENCODE_FINISH(report->packed);