diff options
author | Blake Oler <blake.oler@mongodb.com> | 2018-06-05 16:13:03 -0400 |
---|---|---|
committer | Blake Oler <blake.oler@mongodb.com> | 2018-06-15 15:21:20 -0400 |
commit | ec0de2ca41481105db53a9211a2802346df6afed (patch) | |
tree | 92e72dfe912f0953a0745689f2caec9f7d59075a /src | |
parent | 6c08a0a6455267d215e55838d59cb010dfeaa204 (diff) | |
download | mongo-ec0de2ca41481105db53a9211a2802346df6afed.tar.gz |
SERVER-34550 Remove database versioning logic from setFCV command
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/commands/set_feature_compatibility_version_command.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/mongo/db/commands/set_feature_compatibility_version_command.cpp b/src/mongo/db/commands/set_feature_compatibility_version_command.cpp index 1d6ca50d718..4585ed446b4 100644 --- a/src/mongo/db/commands/set_feature_compatibility_version_command.cpp +++ b/src/mongo/db/commands/set_feature_compatibility_version_command.cpp @@ -184,16 +184,6 @@ public: auto clusterTime = LogicalClock::get(opCtx)->getClusterTime().asTimestamp(); for (const auto& db : allDbs) { - const auto dbVersion = databaseVersion::makeNew(); - - uassertStatusOK(Grid::get(opCtx)->catalogClient()->updateConfigDocument( - opCtx, - DatabaseType::ConfigNS, - BSON(DatabaseType::name(db.getName())), - BSON("$set" << BSON(DatabaseType::version(dbVersion.toBSON()))), - false, - ShardingCatalogClient::kLocalWriteConcern)); - // Enumerate all collections auto collections = uassertStatusOK(Grid::get(opCtx)->catalogClient()->getCollections( @@ -269,20 +259,11 @@ public: opCtx, repl::ReadConcernLevel::kLocalReadConcern)) .value; - // The 'config' dataabase contains the sharded 'config.system.sessions' collection, + // The 'config' database contains the sharded 'config.system.sessions' collection, // but does not have an entry in config.databases. allDbs.emplace_back("config", ShardId("config"), true); for (const auto& db : allDbs) { - uassertStatusOK(Grid::get(opCtx)->catalogClient()->updateConfigDocument( - opCtx, - DatabaseType::ConfigNS, - BSON(DatabaseType::name(db.getName())), - BSON("$unset" << BSON("version" - << "")), - false, - ShardingCatalogClient::kLocalWriteConcern)); - // Enumerate all collections auto collections = uassertStatusOK(Grid::get(opCtx)->catalogClient()->getCollections( |