]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/Mantle.h
update sources to v12.2.5
[ceph.git] / ceph / src / mds / Mantle.h
index 7970562846f7ae9b07ab9126c77de130d891304a..563227248d24ded36f6e0d5aa1606f6b4b057b0d 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef CEPH_MANTLE_H
 #define CEPH_MANTLE_H
 
+#include <boost/utility/string_view.hpp>
+
 #include <lua.hpp>
 #include <vector>
 #include <map>
@@ -26,7 +28,7 @@ class Mantle {
   public:
     Mantle();
     ~Mantle() { if (L) lua_close(L); }
-    int balance(const std::string &script,
+    int balance(boost::string_view script,
                 mds_rank_t whoami,
                 const std::vector <std::map<std::string, double>> &metrics,
                 std::map<mds_rank_t,double> &my_targets);