diff options
author | Ian Boros <ian.boros@mongodb.com> | 2020-08-13 14:08:58 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-27 03:08:04 +0000 |
commit | 3a32dd0a25105ba547712190ff503a46e91f392e (patch) | |
tree | 3bf333229d495a35ffde62aa0ace0e312a720352 /src/mongo/db/s/sharding_initialization_mongod.cpp | |
parent | 6791200c0513187dc193895af70cc170db9afc78 (diff) | |
download | mongo-3a32dd0a25105ba547712190ff503a46e91f392e.tar.gz |
SERVER-50217 change auth op observer to handle $v:1 and $v:2 updates
This commit also removes an implicit constructor for write_ops::UpdateModification.
Diffstat (limited to 'src/mongo/db/s/sharding_initialization_mongod.cpp')
-rw-r--r-- | src/mongo/db/s/sharding_initialization_mongod.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/sharding_initialization_mongod.cpp b/src/mongo/db/s/sharding_initialization_mongod.cpp index 2012a41690b..0e0fb8d6de0 100644 --- a/src/mongo/db/s/sharding_initialization_mongod.cpp +++ b/src/mongo/db/s/sharding_initialization_mongod.cpp @@ -468,7 +468,8 @@ void ShardingInitializationMongoD::updateShardIdentityConfigString( auto updateReq = UpdateRequest(); updateReq.setNamespaceString(NamespaceString::kServerConfigurationNamespace); updateReq.setQuery(BSON("_id" << ShardIdentityType::IdName)); - updateReq.setUpdateModification(updateObj); + updateReq.setUpdateModification( + write_ops::UpdateModification::parseFromClassicUpdate(updateObj)); try { AutoGetOrCreateDb autoDb( |