]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add coll_t::c_str() back
authorSage Weil <sage@redhat.com>
Mon, 12 Jan 2015 01:31:47 +0000 (17:31 -0800)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:02:48 +0000 (17:02 -0700)
This fixes the tracepoints, and is easy/convenient.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.h

index 838de63f3fbc7e2355882a2a0952cebadc95e959..de39af2bf95b413627c87020549574bd4461634a 100644 (file)
@@ -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 {