if (!g_conf().get_val<bool>("rgw_lua_enable"))
return;
rgw::sal::Driver* driver = env.driver;
- int r{0};
std::string install_dir;
#ifdef WITH_RADOSGW_LUA_PACKAGES
rgw::lua::packages_t failed_packages;
- r = rgw::lua::install_packages(dpp, driver, null_yield, g_conf().get_val<std::string>("rgw_luarocks_location"),
- failed_packages, install_dir);
+ int r = rgw::lua::install_packages(dpp, driver, null_yield, g_conf().get_val<std::string>("rgw_luarocks_location"),
+ failed_packages, install_dir);
if (r < 0) {
ldpp_dout(dpp, 5) << "WARNING: failed to install Lua packages from allowlist. error: " << r
<< dendl;