From: Yuval Lifshitz Date: Tue, 23 Jan 2024 11:09:26 +0000 (+0000) Subject: rgw/lua: fix compilation issue when lua packages are disabled X-Git-Tag: v19.3.0~181^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F55277%2Fhead;p=ceph.git rgw/lua: fix compilation issue when lua packages are disabled Fixes: https://tracker.ceph.com/issues/63578#change-253102 Signed-off-by: Yuval Lifshitz --- diff --git a/src/rgw/driver/rados/rgw_sal_rados.cc b/src/rgw/driver/rados/rgw_sal_rados.cc index 709e748cb499..32d11a151b5e 100644 --- a/src/rgw/driver/rados/rgw_sal_rados.cc +++ b/src/rgw/driver/rados/rgw_sal_rados.cc @@ -3270,6 +3270,7 @@ void RadosLuaManager::handle_reload_notify(const DoutPrefixProvider* dpp, option return; } +#ifdef WITH_RADOSGW_LUA_PACKAGES rgw::lua::packages_t failed_packages; std::string install_dir; auto r = rgw::lua::install_packages(dpp, store, @@ -3284,7 +3285,9 @@ void RadosLuaManager::handle_reload_notify(const DoutPrefixProvider* dpp, option ldpp_dout(dpp, 5) << "WARNING: failed to install Lua package: " << p << " from allowlist" << dendl; } - +#else + const int r = 0; +#endif ack_reload(dpp, notify_id, cookie, r); }