summaryrefslogtreecommitdiffstats
path: root/src/mds/Mantle.cc
diff options
context:
space:
mode:
authorTsung-Ju Lii <usefulalgorithm@gmail.com>2018-06-26 04:57:51 +0200
committerTsung-Ju Lii <usefulalgorithm@gmail.com>2018-06-26 05:45:05 +0200
commit610ac4ea0fafbf2d3f9bee6fd92d9f2cfba85d3e (patch)
tree4e562fdfd9bf53140896362368d6f46cbc10af8e /src/mds/Mantle.cc
parentMerge PR #22691 into master (diff)
downloadceph-610ac4ea0fafbf2d3f9bee6fd92d9f2cfba85d3e.tar.xz
ceph-610ac4ea0fafbf2d3f9bee6fd92d9f2cfba85d3e.zip
mds/Mantle: Fixed Mantle's obsolete Lua C++ API
Changed Mantle's Lua C++ API from using several `luaopen_*` calls to one `luaL_openlibs` call, since the former has been deprecated from the release of Lua 5.1. Signed-off-by: Tsung-Ju (Andy Lii) <usefulalgorithm@gmail.com>
Diffstat (limited to 'src/mds/Mantle.cc')
-rw-r--r--src/mds/Mantle.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mds/Mantle.cc b/src/mds/Mantle.cc
index 08e601770c6..8bf79c4c00d 100644
--- a/src/mds/Mantle.cc
+++ b/src/mds/Mantle.cc
@@ -119,12 +119,7 @@ Mantle::Mantle (void)
}
/* balancer policies can use basic Lua functions */
- luaopen_base(L);
- luaopen_coroutine(L);
- luaopen_string(L);
- luaopen_math(L);
- luaopen_table(L);
- luaopen_utf8(L);
+ luaL_openlibs(L);
/* setup debugging */
lua_register(L, "BAL_LOG", dout_wrapper);