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.cpp | |
parent | a5bfc0ee7d76e02f050eb24735d25d71fb111db8 (diff) | |
download | mongo-0e3b3900d5ac67864b90ef83abd484746945a495.tar.gz |
SERVER-29249 Remove Command::_webUi member and constructor argument
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r-- | src/mongo/db/commands.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index 5d52a83ca17..607c0d59430 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -137,9 +137,8 @@ ResourcePattern Command::parseResourcePattern(const std::string& dbname, return ResourcePattern::forExactNamespace(NamespaceString(ns)); } -Command::Command(StringData name, bool webUI, StringData oldName) +Command::Command(StringData name, StringData oldName) : _name(name.toString()), - _webUI(webUI), _commandsExecutedMetric("commands." + _name + ".total", &_commandsExecuted), _commandsFailedMetric("commands." + _name + ".failed", &_commandsFailed) { // register ourself. |