summaryrefslogtreecommitdiff
path: root/src/mongo/db/s
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-06-22 15:25:37 -0400
committerMathias Stearn <mathias@10gen.com>2017-07-13 16:53:12 -0400
commit1f21d889f89cf1338ff198264d63b029314eef7a (patch)
tree741021d15b7b2149b28c8eb84369350d8c9a34d8 /src/mongo/db/s
parenta6cc94d141f13feff33178a769c81282c7bc0170 (diff)
downloadmongo-1f21d889f89cf1338ff198264d63b029314eef7a.tar.gz
SERVER-29731 convert all direct subclasses of Command to BasicCommand
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r--src/mongo/db/s/check_sharding_index_command.cpp4
-rw-r--r--src/mongo/db/s/cleanup_orphaned_cmd.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_add_shard_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_control_balancer_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_merge_chunk_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_move_chunk_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_move_primary_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_set_feature_compatibility_version_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_shard_collection_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_split_chunk_command.cpp4
-rw-r--r--src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp4
-rw-r--r--src/mongo/db/s/force_routing_table_refresh_command.cpp4
-rw-r--r--src/mongo/db/s/get_shard_version_command.cpp4
-rw-r--r--src/mongo/db/s/merge_chunks_command.cpp4
-rw-r--r--src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp8
-rw-r--r--src/mongo/db/s/migration_destination_manager_legacy_commands.cpp16
-rw-r--r--src/mongo/db/s/move_chunk_command.cpp4
-rw-r--r--src/mongo/db/s/set_shard_version_command.cpp4
-rw-r--r--src/mongo/db/s/sharding_state_command.cpp4
-rw-r--r--src/mongo/db/s/split_chunk_command.cpp4
-rw-r--r--src/mongo/db/s/split_vector_command.cpp4
-rw-r--r--src/mongo/db/s/unset_sharding_command.cpp4
25 files changed, 58 insertions, 58 deletions
diff --git a/src/mongo/db/s/check_sharding_index_command.cpp b/src/mongo/db/s/check_sharding_index_command.cpp
index 4917050f219..576bb7bbc72 100644
--- a/src/mongo/db/s/check_sharding_index_command.cpp
+++ b/src/mongo/db/s/check_sharding_index_command.cpp
@@ -54,9 +54,9 @@ namespace dps = ::mongo::dotted_path_support;
namespace {
-class CheckShardingIndex : public Command {
+class CheckShardingIndex : public BasicCommand {
public:
- CheckShardingIndex() : Command("checkShardingIndex") {}
+ CheckShardingIndex() : BasicCommand("checkShardingIndex") {}
virtual void help(std::stringstream& help) const {
help << "Internal command.\n";
diff --git a/src/mongo/db/s/cleanup_orphaned_cmd.cpp b/src/mongo/db/s/cleanup_orphaned_cmd.cpp
index c2df12b73b7..a7af78a64f8 100644
--- a/src/mongo/db/s/cleanup_orphaned_cmd.cpp
+++ b/src/mongo/db/s/cleanup_orphaned_cmd.cpp
@@ -168,9 +168,9 @@ CleanupResult cleanupOrphanedData(OperationContext* opCtx,
* writeConcern: { <writeConcern options> }
* }
*/
-class CleanupOrphanedCommand : public Command {
+class CleanupOrphanedCommand : public BasicCommand {
public:
- CleanupOrphanedCommand() : Command("cleanupOrphaned") {}
+ CleanupOrphanedCommand() : BasicCommand("cleanupOrphaned") {}
virtual bool slaveOk() const {
return false;
diff --git a/src/mongo/db/s/config/configsvr_add_shard_command.cpp b/src/mongo/db/s/config/configsvr_add_shard_command.cpp
index 72dea07a677..6459347f185 100644
--- a/src/mongo/db/s/config/configsvr_add_shard_command.cpp
+++ b/src/mongo/db/s/config/configsvr_add_shard_command.cpp
@@ -55,9 +55,9 @@ const long long kMaxSizeMBDefault = 0;
/**
* Internal sharding command run on config servers to add a shard to the cluster.
*/
-class ConfigSvrAddShardCommand : public Command {
+class ConfigSvrAddShardCommand : public BasicCommand {
public:
- ConfigSvrAddShardCommand() : Command("_configsvrAddShard") {}
+ ConfigSvrAddShardCommand() : BasicCommand("_configsvrAddShard") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is exported by the sharding config server. Do not call "
diff --git a/src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp b/src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp
index d8cd89547ec..d5bbc204458 100644
--- a/src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp
+++ b/src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp
@@ -56,9 +56,9 @@ using std::string;
* writeConcern: <BSONObj>
* }
*/
-class ConfigSvrAddShardToZoneCommand : public Command {
+class ConfigSvrAddShardToZoneCommand : public BasicCommand {
public:
- ConfigSvrAddShardToZoneCommand() : Command("_configsvrAddShardToZone") {}
+ ConfigSvrAddShardToZoneCommand() : BasicCommand("_configsvrAddShardToZone") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is exported by the sharding config server. Do not call "
diff --git a/src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp b/src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp
index 9a42c25f634..7cdb5a8522b 100644
--- a/src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp
+++ b/src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp
@@ -83,9 +83,9 @@ namespace {
* }
*
*/
-class ConfigSvrCommitChunkMigrationCommand : public Command {
+class ConfigSvrCommitChunkMigrationCommand : public BasicCommand {
public:
- ConfigSvrCommitChunkMigrationCommand() : Command("_configsvrCommitChunkMigration") {}
+ ConfigSvrCommitChunkMigrationCommand() : BasicCommand("_configsvrCommitChunkMigration") {}
void help(std::stringstream& help) const override {
help << "should not be calling this directly";
diff --git a/src/mongo/db/s/config/configsvr_control_balancer_command.cpp b/src/mongo/db/s/config/configsvr_control_balancer_command.cpp
index 7a896693887..01b348367a9 100644
--- a/src/mongo/db/s/config/configsvr_control_balancer_command.cpp
+++ b/src/mongo/db/s/config/configsvr_control_balancer_command.cpp
@@ -41,9 +41,9 @@
namespace mongo {
namespace {
-class ConfigSvrBalancerControlCommand : public Command {
+class ConfigSvrBalancerControlCommand : public BasicCommand {
public:
- ConfigSvrBalancerControlCommand(StringData name) : Command(name) {}
+ ConfigSvrBalancerControlCommand(StringData name) : BasicCommand(name) {}
void help(std::stringstream& help) const override {
help << "Internal command, which is exported by the sharding config server. Do not call "
diff --git a/src/mongo/db/s/config/configsvr_merge_chunk_command.cpp b/src/mongo/db/s/config/configsvr_merge_chunk_command.cpp
index 9b57c172e86..c9b92fc8160 100644
--- a/src/mongo/db/s/config/configsvr_merge_chunk_command.cpp
+++ b/src/mongo/db/s/config/configsvr_merge_chunk_command.cpp
@@ -63,9 +63,9 @@ using std::string;
* writeConcern: <BSONObj>
* }
*/
-class ConfigSvrMergeChunkCommand : public Command {
+class ConfigSvrMergeChunkCommand : public BasicCommand {
public:
- ConfigSvrMergeChunkCommand() : Command("_configsvrCommitChunkMerge") {}
+ ConfigSvrMergeChunkCommand() : BasicCommand("_configsvrCommitChunkMerge") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is sent by a shard to the sharding config server. Do "
diff --git a/src/mongo/db/s/config/configsvr_move_chunk_command.cpp b/src/mongo/db/s/config/configsvr_move_chunk_command.cpp
index efd4c4c8710..9ebc98537a0 100644
--- a/src/mongo/db/s/config/configsvr_move_chunk_command.cpp
+++ b/src/mongo/db/s/config/configsvr_move_chunk_command.cpp
@@ -47,9 +47,9 @@ namespace {
using std::string;
using str::stream;
-class ConfigSvrMoveChunkCommand : public Command {
+class ConfigSvrMoveChunkCommand : public BasicCommand {
public:
- ConfigSvrMoveChunkCommand() : Command("_configsvrMoveChunk") {}
+ ConfigSvrMoveChunkCommand() : BasicCommand("_configsvrMoveChunk") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is exported by the sharding config server. Do not call "
diff --git a/src/mongo/db/s/config/configsvr_move_primary_command.cpp b/src/mongo/db/s/config/configsvr_move_primary_command.cpp
index ca592283df6..d663c4d56e0 100644
--- a/src/mongo/db/s/config/configsvr_move_primary_command.cpp
+++ b/src/mongo/db/s/config/configsvr_move_primary_command.cpp
@@ -58,9 +58,9 @@ namespace {
/**
* Internal sharding command run on config servers to change a database's primary shard.
*/
-class ConfigSvrMovePrimaryCommand : public Command {
+class ConfigSvrMovePrimaryCommand : public BasicCommand {
public:
- ConfigSvrMovePrimaryCommand() : Command("_configsvrMovePrimary") {}
+ ConfigSvrMovePrimaryCommand() : BasicCommand("_configsvrMovePrimary") {}
virtual bool slaveOk() const {
return false;
diff --git a/src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp b/src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp
index 5228635a599..e053985255a 100644
--- a/src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp
+++ b/src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp
@@ -56,9 +56,9 @@ using std::string;
* writeConcern: <BSONObj>
* }
*/
-class ConfigSvrRemoveShardFromZoneCommand : public Command {
+class ConfigSvrRemoveShardFromZoneCommand : public BasicCommand {
public:
- ConfigSvrRemoveShardFromZoneCommand() : Command("_configsvrRemoveShardFromZone") {}
+ ConfigSvrRemoveShardFromZoneCommand() : BasicCommand("_configsvrRemoveShardFromZone") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is exported by the sharding config server. Do not call "
diff --git a/src/mongo/db/s/config/configsvr_set_feature_compatibility_version_command.cpp b/src/mongo/db/s/config/configsvr_set_feature_compatibility_version_command.cpp
index bdb9f9767b8..021f19d62e5 100644
--- a/src/mongo/db/s/config/configsvr_set_feature_compatibility_version_command.cpp
+++ b/src/mongo/db/s/config/configsvr_set_feature_compatibility_version_command.cpp
@@ -58,10 +58,10 @@ namespace {
* _configsvrSetFeatureCompatibilityVersion: <string version>
* }
*/
-class ConfigSvrSetFeatureCompatibilityVersionCommand : public Command {
+class ConfigSvrSetFeatureCompatibilityVersionCommand : public BasicCommand {
public:
ConfigSvrSetFeatureCompatibilityVersionCommand()
- : Command("_configsvrSetFeatureCompatibilityVersion") {}
+ : BasicCommand("_configsvrSetFeatureCompatibilityVersion") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is exported by the sharding config server. Do not call "
diff --git a/src/mongo/db/s/config/configsvr_shard_collection_command.cpp b/src/mongo/db/s/config/configsvr_shard_collection_command.cpp
index b582f4f5899..4bf43a0635b 100644
--- a/src/mongo/db/s/config/configsvr_shard_collection_command.cpp
+++ b/src/mongo/db/s/config/configsvr_shard_collection_command.cpp
@@ -124,9 +124,9 @@ BSONObj makeCreateIndexesCmd(const NamespaceString& nss,
/**
* Internal sharding command run on config servers to add a shard to the cluster.
*/
-class ConfigSvrShardCollectionCommand : public Command {
+class ConfigSvrShardCollectionCommand : public BasicCommand {
public:
- ConfigSvrShardCollectionCommand() : Command("_configsvrShardCollection") {}
+ ConfigSvrShardCollectionCommand() : BasicCommand("_configsvrShardCollection") {}
Status checkAuthForCommand(Client* client,
const std::string& dbname,
diff --git a/src/mongo/db/s/config/configsvr_split_chunk_command.cpp b/src/mongo/db/s/config/configsvr_split_chunk_command.cpp
index 841e03a2a1e..acfd59c1cf2 100644
--- a/src/mongo/db/s/config/configsvr_split_chunk_command.cpp
+++ b/src/mongo/db/s/config/configsvr_split_chunk_command.cpp
@@ -61,9 +61,9 @@ using std::string;
* writeConcern: <BSONObj>
* }
*/
-class ConfigSvrSplitChunkCommand : public Command {
+class ConfigSvrSplitChunkCommand : public BasicCommand {
public:
- ConfigSvrSplitChunkCommand() : Command("_configsvrCommitChunkSplit") {}
+ ConfigSvrSplitChunkCommand() : BasicCommand("_configsvrCommitChunkSplit") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is sent by a shard to the sharding config server. Do "
diff --git a/src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp b/src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp
index f0b5328aedd..488e432f2eb 100644
--- a/src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp
+++ b/src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp
@@ -58,9 +58,9 @@ using std::string;
* writeConcern: <BSONObj>
* }
*/
-class ConfigsvrUpdateZoneKeyRangeCommand : public Command {
+class ConfigsvrUpdateZoneKeyRangeCommand : public BasicCommand {
public:
- ConfigsvrUpdateZoneKeyRangeCommand() : Command("_configsvrUpdateZoneKeyRange") {}
+ ConfigsvrUpdateZoneKeyRangeCommand() : BasicCommand("_configsvrUpdateZoneKeyRange") {}
void help(std::stringstream& help) const override {
help << "Internal command, which is exported by the sharding config server. Do not call "
diff --git a/src/mongo/db/s/force_routing_table_refresh_command.cpp b/src/mongo/db/s/force_routing_table_refresh_command.cpp
index 1fd33eebf99..b863fa677b8 100644
--- a/src/mongo/db/s/force_routing_table_refresh_command.cpp
+++ b/src/mongo/db/s/force_routing_table_refresh_command.cpp
@@ -61,9 +61,9 @@ namespace {
* Takes a single argument, a namespace string, and forces this node to refresh its routing table
* cache entry for that namespace.
*/
-class ForceRoutingTableRefresh : public Command {
+class ForceRoutingTableRefresh : public BasicCommand {
public:
- ForceRoutingTableRefresh() : Command("forceRoutingTableRefresh") {}
+ ForceRoutingTableRefresh() : BasicCommand("forceRoutingTableRefresh") {}
void help(std::stringstream& help) const override {
help << "internal command to force a node to refresh its routing table entry for a "
diff --git a/src/mongo/db/s/get_shard_version_command.cpp b/src/mongo/db/s/get_shard_version_command.cpp
index f1632fa7224..7808b08005a 100644
--- a/src/mongo/db/s/get_shard_version_command.cpp
+++ b/src/mongo/db/s/get_shard_version_command.cpp
@@ -47,9 +47,9 @@
namespace mongo {
namespace {
-class GetShardVersion : public Command {
+class GetShardVersion : public BasicCommand {
public:
- GetShardVersion() : Command("getShardVersion") {}
+ GetShardVersion() : BasicCommand("getShardVersion") {}
void help(std::stringstream& help) const override {
help << " example: { getShardVersion : 'alleyinsider.foo' } ";
diff --git a/src/mongo/db/s/merge_chunks_command.cpp b/src/mongo/db/s/merge_chunks_command.cpp
index 37fe8fcd58d..13286839627 100644
--- a/src/mongo/db/s/merge_chunks_command.cpp
+++ b/src/mongo/db/s/merge_chunks_command.cpp
@@ -319,9 +319,9 @@ Status mergeChunks(OperationContext* opCtx,
return Status::OK();
}
-class MergeChunksCommand : public Command {
+class MergeChunksCommand : public BasicCommand {
public:
- MergeChunksCommand() : Command("mergeChunks") {}
+ MergeChunksCommand() : BasicCommand("mergeChunks") {}
void help(stringstream& h) const override {
h << "Merge Chunks command\n"
diff --git a/src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp b/src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp
index eeb12474948..5ccadd3f724 100644
--- a/src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp
+++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp
@@ -111,9 +111,9 @@ private:
MigrationChunkClonerSourceLegacy* _chunkCloner;
};
-class InitialCloneCommand : public Command {
+class InitialCloneCommand : public BasicCommand {
public:
- InitialCloneCommand() : Command("_migrateClone") {}
+ InitialCloneCommand() : BasicCommand("_migrateClone") {}
void help(std::stringstream& h) const {
h << "internal";
@@ -174,9 +174,9 @@ public:
} initialCloneCommand;
-class TransferModsCommand : public Command {
+class TransferModsCommand : public BasicCommand {
public:
- TransferModsCommand() : Command("_transferMods") {}
+ TransferModsCommand() : BasicCommand("_transferMods") {}
void help(std::stringstream& h) const {
h << "internal";
diff --git a/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp b/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp
index a188affcf43..5bbd09cdddb 100644
--- a/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp
+++ b/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp
@@ -55,9 +55,9 @@ using std::string;
namespace {
-class RecvChunkStartCommand : public Command {
+class RecvChunkStartCommand : public BasicCommand {
public:
- RecvChunkStartCommand() : Command("_recvChunkStart") {}
+ RecvChunkStartCommand() : BasicCommand("_recvChunkStart") {}
void help(std::stringstream& h) const {
h << "internal";
@@ -156,9 +156,9 @@ public:
} recvChunkStartCmd;
-class RecvChunkStatusCommand : public Command {
+class RecvChunkStatusCommand : public BasicCommand {
public:
- RecvChunkStatusCommand() : Command("_recvChunkStatus") {}
+ RecvChunkStatusCommand() : BasicCommand("_recvChunkStatus") {}
void help(std::stringstream& h) const {
h << "internal";
@@ -195,9 +195,9 @@ public:
} recvChunkStatusCommand;
-class RecvChunkCommitCommand : public Command {
+class RecvChunkCommitCommand : public BasicCommand {
public:
- RecvChunkCommitCommand() : Command("_recvChunkCommit") {}
+ RecvChunkCommitCommand() : BasicCommand("_recvChunkCommit") {}
void help(std::stringstream& h) const {
h << "internal";
@@ -242,9 +242,9 @@ public:
} recvChunkCommitCommand;
-class RecvChunkAbortCommand : public Command {
+class RecvChunkAbortCommand : public BasicCommand {
public:
- RecvChunkAbortCommand() : Command("_recvChunkAbort") {}
+ RecvChunkAbortCommand() : BasicCommand("_recvChunkAbort") {}
void help(std::stringstream& h) const {
h << "internal";
diff --git a/src/mongo/db/s/move_chunk_command.cpp b/src/mongo/db/s/move_chunk_command.cpp
index df72a27e89e..b7d52f5058e 100644
--- a/src/mongo/db/s/move_chunk_command.cpp
+++ b/src/mongo/db/s/move_chunk_command.cpp
@@ -79,9 +79,9 @@ MONGO_FP_DECLARE(moveChunkHangAtStep5);
MONGO_FP_DECLARE(moveChunkHangAtStep6);
MONGO_FP_DECLARE(moveChunkHangAtStep7);
-class MoveChunkCommand : public Command {
+class MoveChunkCommand : public BasicCommand {
public:
- MoveChunkCommand() : Command("moveChunk") {}
+ MoveChunkCommand() : BasicCommand("moveChunk") {}
void help(std::stringstream& help) const override {
help << "should not be calling this directly";
diff --git a/src/mongo/db/s/set_shard_version_command.cpp b/src/mongo/db/s/set_shard_version_command.cpp
index 2df54bc37c5..56675280e5f 100644
--- a/src/mongo/db/s/set_shard_version_command.cpp
+++ b/src/mongo/db/s/set_shard_version_command.cpp
@@ -60,9 +60,9 @@ using str::stream;
namespace {
-class SetShardVersion : public Command {
+class SetShardVersion : public BasicCommand {
public:
- SetShardVersion() : Command("setShardVersion") {}
+ SetShardVersion() : BasicCommand("setShardVersion") {}
void help(std::stringstream& help) const override {
help << "internal";
diff --git a/src/mongo/db/s/sharding_state_command.cpp b/src/mongo/db/s/sharding_state_command.cpp
index 21b12746c9f..8bb4e5fc8b3 100644
--- a/src/mongo/db/s/sharding_state_command.cpp
+++ b/src/mongo/db/s/sharding_state_command.cpp
@@ -43,9 +43,9 @@
namespace mongo {
namespace {
-class ShardingStateCmd : public Command {
+class ShardingStateCmd : public BasicCommand {
public:
- ShardingStateCmd() : Command("shardingState") {}
+ ShardingStateCmd() : BasicCommand("shardingState") {}
virtual bool supportsWriteConcern(const BSONObj& cmd) const override {
return false;
diff --git a/src/mongo/db/s/split_chunk_command.cpp b/src/mongo/db/s/split_chunk_command.cpp
index cc43284a7ef..2830a77915d 100644
--- a/src/mongo/db/s/split_chunk_command.cpp
+++ b/src/mongo/db/s/split_chunk_command.cpp
@@ -130,9 +130,9 @@ bool _checkMetadataForSuccess(OperationContext* opCtx,
return true;
}
-class SplitChunkCommand : public Command {
+class SplitChunkCommand : public BasicCommand {
public:
- SplitChunkCommand() : Command("splitChunk") {}
+ SplitChunkCommand() : BasicCommand("splitChunk") {}
void help(std::stringstream& help) const override {
help << "internal command usage only\n"
diff --git a/src/mongo/db/s/split_vector_command.cpp b/src/mongo/db/s/split_vector_command.cpp
index 309dddf1cfc..a01287bf773 100644
--- a/src/mongo/db/s/split_vector_command.cpp
+++ b/src/mongo/db/s/split_vector_command.cpp
@@ -69,9 +69,9 @@ BSONObj prettyKey(const BSONObj& keyPattern, const BSONObj& key) {
return key.replaceFieldNames(keyPattern).clientReadable();
}
-class SplitVector : public Command {
+class SplitVector : public BasicCommand {
public:
- SplitVector() : Command("splitVector") {}
+ SplitVector() : BasicCommand("splitVector") {}
bool supportsWriteConcern(const BSONObj& cmd) const override {
return false;
diff --git a/src/mongo/db/s/unset_sharding_command.cpp b/src/mongo/db/s/unset_sharding_command.cpp
index cb8e08a67b0..18bf30403a5 100644
--- a/src/mongo/db/s/unset_sharding_command.cpp
+++ b/src/mongo/db/s/unset_sharding_command.cpp
@@ -44,9 +44,9 @@
namespace mongo {
namespace {
-class UnsetShardingCommand : public Command {
+class UnsetShardingCommand : public BasicCommand {
public:
- UnsetShardingCommand() : Command("unsetSharding") {}
+ UnsetShardingCommand() : BasicCommand("unsetSharding") {}
void help(std::stringstream& help) const override {
help << "internal";