]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: Remove command support for legacy syntax
authorDouglas Fuller <dfuller@redhat.com>
Tue, 25 Jul 2017 17:57:47 +0000 (13:57 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 17 Apr 2018 18:01:01 +0000 (11:01 -0700)
No longer check for commands for deprecated legacy filesystems.
These commands are long since deprecated and this code is no longer
needed.

Signed-off-by: Douglas Fuller <dfuller@redhat.com>
src/mon/MDSMonitor.cc

index a00fb9721f0c3f26f08c386085a71d0bd972f037..24159e70833a21e695373ef9e74f90e01c47f01c 100644 (file)
@@ -1237,17 +1237,6 @@ bool MDSMonitor::prepare_command(MonOpRequestRef op)
     goto out;
   }
 
-  // Only handle legacy commands if there is a filesystem configured
-  if (pending.legacy_client_fscid == FS_CLUSTER_ID_NONE) {
-    if (pending.filesystems.size() == 0) {
-      ss << "No filesystem configured: use `ceph fs new` to create a filesystem";
-    } else {
-      ss << "No filesystem set for use with legacy commands";
-    }
-    r = -EINVAL;
-    goto out;
-  }
-
   if (r == -ENOSYS && ss.str().empty()) {
     ss << "unrecognized command";
   }