diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-05-17 14:09:03 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-05-17 19:29:36 -0400 |
commit | 0e3b3900d5ac67864b90ef83abd484746945a495 (patch) | |
tree | d3d241d7b6200bf827bef5203b450e39e8a99a4f /src/mongo/db/commands.h | |
parent | a5bfc0ee7d76e02f050eb24735d25d71fb111db8 (diff) | |
download | mongo-0e3b3900d5ac67864b90ef83abd484746945a495.tar.gz |
SERVER-29249 Remove Command::_webUi member and constructor argument
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 39246d357a2..2c55575dce5 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -89,10 +89,9 @@ public: * Constructs a new command and causes it to be registered with the global commands list. It is * not safe to construct commands other than when the server is starting up. * - * @param webUI expose the command in the web ui as localhost:28017/<name> * @param oldName an optional old, deprecated name for the command */ - Command(StringData name, bool webUI = false, StringData oldName = StringData()); + Command(StringData name, StringData oldName = StringData()); // NOTE: Do not remove this declaration, or relocate it in this class. We // are using this method to control where the vtable is emitted. @@ -105,13 +104,6 @@ public: return _name; } - /** - * Returns whether this command is visible in the Web UI. - */ - bool isWebUI() const { - return _webUI; - } - // Return the namespace for the command. If the first field in 'cmdObj' is of type // mongo::String, then that field is interpreted as the collection name, and is // appended to 'dbname' after a '.' character. If the first field is not of type @@ -436,9 +428,6 @@ private: // The full name of the command const std::string _name; - // Whether the command is available in the web UI - const bool _webUI; - // Pointers to hold the metrics tree references ServerStatusMetricField<Counter64> _commandsExecutedMetric; ServerStatusMetricField<Counter64> _commandsFailedMetric; |