diff options
Diffstat (limited to 'src/mongo/db/commands/set_cluster_parameter_invocation.cpp')
| -rw-r--r-- | src/mongo/db/commands/set_cluster_parameter_invocation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/commands/set_cluster_parameter_invocation.cpp b/src/mongo/db/commands/set_cluster_parameter_invocation.cpp index 6d32f73b393..b19b01ead17 100644 --- a/src/mongo/db/commands/set_cluster_parameter_invocation.cpp +++ b/src/mongo/db/commands/set_cluster_parameter_invocation.cpp @@ -126,6 +126,11 @@ StatusWith<bool> ClusterParameterDBClientService::updateParameterOnDisk( return Status(ErrorCodes::FailedToParse, errmsg); } + auto responseStatus = response.toStatus(); + if (!responseStatus.isOK()) { + return responseStatus; + } + return response.getNModified() > 0 || response.getN() > 0; } |
