mon/MDSMonitor: return zero when mds is absent for "mds fail"

... instead of EINVAL.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
This commit is contained in:
Rishabh Dave 2020-09-16 01:10:31 +05:30
parent c55e2c8706
commit a246a56776

View File

@ -1456,7 +1456,9 @@ int MDSMonitor::filesystem_command(
MDSMap::mds_info_t failed_info;
mds_gid_t gid = gid_from_arg(fsmap, who, ss);
if (gid == MDS_GID_NONE) {
return -EINVAL;
ss << "MDS named '" << who << "' does not exist, is not up or you "
<< "lack the permission to see.";
return 0;
}
if(!fsmap.gid_exists(gid, op->get_session()->get_allowed_fs_names())) {
ss << "MDS named '" << who << "' does not exist, is not up or you "