]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_lua_utils.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rgw / rgw_lua_utils.cc
index 6af87d2c045a8878e0721a5694d93e8ade79b31c..3ffe23662116eb1cbf48d04416324dc078c2b3be 100644 (file)
@@ -18,7 +18,7 @@ constexpr const char* RGWDebugLogAction{"RGWDebugLog"};
 
 int RGWDebugLog(lua_State* L) 
 {
-  auto cct = reinterpret_cast<CephContext*>(lua_touserdata(L, lua_upvalueindex(1)));
+  auto cct = reinterpret_cast<CephContext*>(lua_touserdata(L, lua_upvalueindex(FIRST_UPVAL)));
 
   auto message = luaL_checkstring(L, 1);
   ldout(cct, 20) << "Lua INFO: " << message << dendl;
@@ -73,4 +73,5 @@ void open_standard_libs(lua_State* L) {
   lua_settable(L, -3);
 }
 
-}
+} // namespace rgw::lua
+