1
0
mirror of https://github.com/ceph/ceph synced 2025-03-19 17:06:24 +00:00

Merge pull request from Matan-B/lua-install-packages-fix

rgw: fix install packages function
This commit is contained in:
Yuval Lifshitz 2021-08-23 15:46:54 +03:00 committed by GitHub
commit e31783c680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,8 @@ int install_packages(const DoutPrefixProvider *dpp, rgw::sal::Store* store, opti
// luarocks directory cleanup
std::error_code ec;
const auto& luarocks_path = store->get_luarocks_path();
if (!std::filesystem::remove_all(luarocks_path, ec) &&
if (std::filesystem::remove_all(luarocks_path, ec)
== static_cast<std::uintmax_t>(-1) &&
ec != std::errc::no_such_file_or_directory) {
output.append("failed to clear luarock directory: ");
output.append(ec.message());