]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/lua: fix compilation issue when lua packages are disabled 55277/head
authorYuval Lifshitz <ylifshit@redhat.com>
Tue, 23 Jan 2024 11:09:26 +0000 (11:09 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Tue, 23 Jan 2024 11:09:26 +0000 (11:09 +0000)
Fixes: https://tracker.ceph.com/issues/63578#change-253102
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/rgw/driver/rados/rgw_sal_rados.cc

index 709e748cb49933cb47af22238b9ef4a95c9029ed..32d11a151b5eef89722d9e6059e5e1bec5f1fdb6 100644 (file)
@@ -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);
 }