diff options
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/cluster_fsync_cmd.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/commands/cluster_split_cmd.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/commands/strategy.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/commands/cluster_fsync_cmd.cpp b/src/mongo/s/commands/cluster_fsync_cmd.cpp index 691b6c41caf..4b1a4a469e5 100644 --- a/src/mongo/s/commands/cluster_fsync_cmd.cpp +++ b/src/mongo/s/commands/cluster_fsync_cmd.cpp @@ -40,7 +40,7 @@ namespace { class FsyncCommand : public ErrmsgCommandDeprecated { public: - FsyncCommand() : ErrmsgCommandDeprecated("fsync", "fsync") {} + FsyncCommand() : ErrmsgCommandDeprecated("fsync") {} virtual bool slaveOk() const { return true; diff --git a/src/mongo/s/commands/cluster_split_cmd.cpp b/src/mongo/s/commands/cluster_split_cmd.cpp index 325333852a4..e29e1a7c412 100644 --- a/src/mongo/s/commands/cluster_split_cmd.cpp +++ b/src/mongo/s/commands/cluster_split_cmd.cpp @@ -86,7 +86,7 @@ BSONObj selectMedianKey(OperationContext* opCtx, class SplitCollectionCmd : public ErrmsgCommandDeprecated { public: - SplitCollectionCmd() : ErrmsgCommandDeprecated("split", "split") {} + SplitCollectionCmd() : ErrmsgCommandDeprecated("split") {} bool slaveOk() const override { return true; diff --git a/src/mongo/s/commands/strategy.cpp b/src/mongo/s/commands/strategy.cpp index 9b05cad2a4d..0a66edcbcb0 100644 --- a/src/mongo/s/commands/strategy.cpp +++ b/src/mongo/s/commands/strategy.cpp @@ -251,7 +251,7 @@ void runCommand(OperationContext* opCtx, const OpMsgRequest& request, BSONObjBui Command::appendCommandStatus( builder, {ErrorCodes::CommandNotFound, str::stream() << "no such cmd: " << commandName}); - Command::unknownCommands.increment(); + globalCommandRegistry()->incrementUnknownCommands(); return; } |