diff options
author | Marcos José Grillo Ramirez <marcos.grillo@mongodb.com> | 2022-04-08 17:03:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-08 17:43:16 +0000 |
commit | e15d236351e05a1d9bf3d3b043a260fd90972301 (patch) | |
tree | c9ff4209d405d6f64fdb417533285758021bf5ac /src/mongo/db/commands | |
parent | 8aafd05e614a1fb68b2fa1de53a71ba11ee934b0 (diff) | |
download | mongo-e15d236351e05a1d9bf3d3b043a260fd90972301.tar.gz |
SERVER-63606 Serialize setClusterParameter with add/remove shard and push parameters on newly added shards
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/set_cluster_parameter_invocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/set_cluster_parameter_invocation.cpp b/src/mongo/db/commands/set_cluster_parameter_invocation.cpp index b021b800e12..6d32f73b393 100644 --- a/src/mongo/db/commands/set_cluster_parameter_invocation.cpp +++ b/src/mongo/db/commands/set_cluster_parameter_invocation.cpp @@ -70,9 +70,10 @@ bool SetClusterParameterInvocation::invoke(OperationContext* opCtx, BSONObj query = BSON("_id" << parameterName); BSONObj update = updateBuilder.obj(); + uassertStatusOK(serverParameter->validate(update)); + LOGV2_DEBUG( 6432603, 2, "Updating cluster parameter on-disk", "clusterParameter"_attr = parameterName); - uassertStatusOK(serverParameter->validate(update)); return uassertStatusOK(_dbService.updateParameterOnDisk(opCtx, query, update, writeConcern)); } |