]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
NVMEDevice: use stringify instead of std::to_string
authorHaomai Wang <haomai@xsky.com>
Thu, 7 Jan 2016 16:39:24 +0000 (00:39 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 1 Feb 2016 14:00:46 +0000 (22:00 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/os/bluestore/NVMEDevice.cc

index a4765f5288512c699a1dfe34513fb09f1668be1b..1b5a660154a4896e312fcaee19d278ade6ae7c70 100644 (file)
@@ -31,6 +31,7 @@
 #include <rte_malloc.h>
 #include <rte_lcore.h>
 
+#include "include/stringify.h"
 #include "include/types.h"
 #include "include/compat.h"
 #include "common/errno.h"
@@ -352,7 +353,7 @@ int NVMEDevice::open(string p)
           << " block_size " << block_size << " (" << pretty_si_t(block_size)
           << "B)" << dendl;
 
-  PerfCountersBuilder b(g_ceph_context, string("nvmedevice-") + name + "-" + std::to_string(this),
+  PerfCountersBuilder b(g_ceph_context, string("nvmedevice-") + name + "-" + stringify(this),
                         l_bluestore_nvmedevice_first, l_bluestore_nvmedevice_last);
   b.add_time_avg(l_bluestore_nvmedevice_aio_write_lat, "aio_write_lat", "Average write completing latency");
   b.add_time_avg(l_bluestore_nvmedevice_read_lat, "read_lat", "Average read completing latency");