]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/DamageTable.h
update sources to v12.2.5
[ceph.git] / ceph / src / mds / DamageTable.h
index bc6d3bfdae92795c13119ee237781f24629c4540..843ee32d5041ac0f6d2f62fd8e40c0e9560eacb1 100644 (file)
@@ -16,6 +16,8 @@
 #ifndef DAMAGE_TABLE_H_
 #define DAMAGE_TABLE_H_
 
+#include <boost/utility/string_view.hpp>
+
 #include "mdstypes.h"
 #include "auth/Crypto.h"
 
@@ -93,7 +95,7 @@ class DentryIdent
     }
   }
 
-  DentryIdent(const std::string &dname_, snapid_t snap_id_)
+  DentryIdent(boost::string_view dname_, snapid_t snap_id_)
     : dname(dname_), snap_id(snap_id_)
   {}
 };
@@ -161,7 +163,7 @@ public:
    *
    * @return true if fatal
    */
-  bool notify_dirfrag(inodeno_t ino, frag_t frag, const std::string &path);
+  bool notify_dirfrag(inodeno_t ino, frag_t frag, boost::string_view path);
 
   /**
    * Indicate that a particular dentry cannot be loaded.
@@ -170,17 +172,17 @@ public:
    */
   bool notify_dentry(
     inodeno_t ino, frag_t frag,
-    snapid_t snap_id, const std::string &dname, const std::string &path);
+    snapid_t snap_id, boost::string_view dname, boost::string_view path);
 
   /**
    * Indicate that a particular Inode could not be loaded by number
    */
   bool notify_remote_damaged(
-      inodeno_t ino, const std::string &path);
+      inodeno_t ino, boost::string_view path);
 
   bool is_dentry_damaged(
       const CDir *dir_frag,
-      const std::string &dname,
+      boost::string_view dname,
       const snapid_t snap_id) const;
 
   bool is_dirfrag_damaged(