mirror of
https://github.com/ceph/ceph
synced 2025-02-06 10:23:52 +00:00
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:
parent
c55e2c8706
commit
a246a56776
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user