summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/config/configsvr_drop_collection_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/config/configsvr_drop_collection_command.cpp')
-rw-r--r--src/mongo/db/s/config/configsvr_drop_collection_command.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/s/config/configsvr_drop_collection_command.cpp b/src/mongo/db/s/config/configsvr_drop_collection_command.cpp
index 29b15c82a9e..6743958f1f5 100644
--- a/src/mongo/db/s/config/configsvr_drop_collection_command.cpp
+++ b/src/mongo/db/s/config/configsvr_drop_collection_command.cpp
@@ -59,8 +59,12 @@ class ConfigSvrDropCollectionCommand : public BasicCommand {
public:
ConfigSvrDropCollectionCommand() : BasicCommand("_configsvrDropCollection") {}
- const std::set<std::string>& apiVersions() const {
- return kApiVersions1;
+ /**
+ * We accept any apiVersion, apiStrict, and/or apiDeprecationErrors, and forward it with the
+ * "drop" command to shards.
+ */
+ bool acceptsAnyApiVersionParameters() const override {
+ return true;
}
AllowedOnSecondary secondaryAllowed(ServiceContext*) const override {