]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/LogEvent.h
update sources to v12.2.5
[ceph.git] / ceph / src / mds / LogEvent.h
index 29598503d02de646c70d2eb34a4cbd8ad47c870f..704ccee3d7c48e7b965f459c4238f2e406541d9f 100644 (file)
@@ -73,7 +73,7 @@ public:
   virtual ~LogEvent() { }
 
   string get_type_str() const;
-  static EventType str_to_type(std::string const &str);
+  static EventType str_to_type(boost::string_view str);
   EventType get_type() const { return _type; }
   void set_type(EventType t) { _type = t; }
 
@@ -116,6 +116,9 @@ public:
    * tools can examine metablobs while traversing lists of LogEvent.
    */
   virtual EMetaBlob *get_metablob() { return NULL; }
+
+private:
+  static const std::map<std::string, LogEvent::EventType> types;
 };
 
 inline ostream& operator<<(ostream& out, const LogEvent &le) {