diff options
author | yuval Lifshitz <ylifshit@redhat.com> | 2022-06-09 15:29:48 +0200 |
---|---|---|
committer | yuval Lifshitz <ylifshit@redhat.com> | 2022-06-09 20:43:51 +0200 |
commit | c6065f733eac6468ff6e1d205c213123dec7f3b1 (patch) | |
tree | 18ef3df64ef9f4ecb58df09becd73c215413ceec /src/rgw/rgw_lua_utils.cc | |
parent | rgw/lua: add atomic increment/decrement to RGW table (diff) | |
download | ceph-c6065f733eac6468ff6e1d205c213123dec7f3b1.tar.xz ceph-c6065f733eac6468ff6e1d205c213123dec7f3b1.zip |
rgw/lua: use constants for upvalue indexes
Signed-off-by: yuval Lifshitz <ylifshit@redhat.com>
Diffstat (limited to 'src/rgw/rgw_lua_utils.cc')
-rw-r--r-- | src/rgw/rgw_lua_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_lua_utils.cc b/src/rgw/rgw_lua_utils.cc index 6af87d2c045..9b116269d9e 100644 --- a/src/rgw/rgw_lua_utils.cc +++ b/src/rgw/rgw_lua_utils.cc @@ -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; |