rgw/main: if !nfs, register service map as "rgw"

This was accidentally changed to "nfs"--which breaks various
ceph orchestration assumptions.

Found by Ernesto Puerta <epuertat@redhat.com>

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
Matt Benjamin 2022-09-12 17:00:49 -04:00
parent 28758235ba
commit 0a5debf821

View File

@ -477,7 +477,7 @@ int rgw::AppMain::init_frontends2(RGWLib* rgwlib)
fes.push_back(fe);
}
std::string daemon_type = (nfs) ? "rgw-nfs" : "nfs";
std::string daemon_type = (nfs) ? "rgw-nfs" : "rgw";
r = store->register_to_service_map(dpp, daemon_type, service_map_meta);
if (r < 0) {
derr << "ERROR: failed to register to service map: " << cpp_strerror(-r) << dendl;