From 27e41877040fdb3aa4d427a950c6e6a7f2976e1f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 11 Jan 2015 17:31:47 -0800 Subject: [PATCH] osd: add coll_t::c_str() back This fixes the tracepoints, and is easy/convenient. Signed-off-by: Sage Weil --- src/osd/osd_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index 838de63f3fbc7..de39af2bf95b4 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -518,6 +518,9 @@ public: const std::string& to_str() const { return _str; } + const char *c_str() const { + return _str.c_str(); + } bool parse(const std::string& s); int operator<(const coll_t &rhs) const { -- 2.39.5