summaryrefslogtreecommitdiffstats
path: root/src/librados
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2016-02-25 07:26:39 +0100
committerKefu Chai <kchai@redhat.com>2016-02-25 07:39:57 +0100
commitac7d11ad73d4fc706fb8ea82b31ad740a5d236a0 (patch)
tree132f3808407d75e77d6ae2acdbc99edfa1d62166 /src/librados
parentMerge pull request #6898 from tchaikov/wip-13505 (diff)
downloadceph-ac7d11ad73d4fc706fb8ea82b31ad740a5d236a0.tar.xz
ceph-ac7d11ad73d4fc706fb8ea82b31ad740a5d236a0.zip
librados: add missing tracpoint for scrub APIs
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/librados')
-rw-r--r--src/librados/librados.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librados/librados.cc b/src/librados/librados.cc
index dc067aaa303..f9931e8b325 100644
--- a/src/librados/librados.cc
+++ b/src/librados/librados.cc
@@ -2853,7 +2853,7 @@ extern "C" int rados_pool_list(rados_t cluster, char *buf, size_t len)
CEPH_RADOS_API int rados_inconsistent_pg_list(rados_t cluster, int64_t pool_id,
char *buf, size_t len)
{
- tracepoint(librados, rados_inconsistent_pg_list_enter, cluster, len);
+ tracepoint(librados, rados_inconsistent_pg_list_enter, cluster, pool_id, len);
librados::RadosClient *client = (librados::RadosClient *)cluster;
std::vector<librados::PlacementGroup> pgs;
int r = ::get_inconsistent_pgs(*client, pool_id, &pgs);
@@ -2877,7 +2877,7 @@ CEPH_RADOS_API int rados_inconsistent_pg_list(rados_t cluster, int64_t pool_id,
auto s = ss.str();
unsigned rl = s.length() + 1;
if (len >= rl) {
- tracepoint(librados, rados_inconsistent_pg_list_pg, p);
+ tracepoint(librados, rados_inconsistent_pg_list_pg, s.c_str());
strncat(b, s.c_str(), rl);
b += rl;
len -= rl;