diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2019-09-11 05:12:28 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-11 05:12:28 +0000 |
commit | 307adf151421e9e0570a11367c1b5e997be68638 (patch) | |
tree | c1ed12b337cd5841da1a2cc507e97af1da2ae09b /src/mongo/db/s/set_shard_version_command.cpp | |
parent | 2e1b904ebc056dc758cd71007f7e8c0bca3e85f6 (diff) | |
download | mongo-307adf151421e9e0570a11367c1b5e997be68638.tar.gz |
SERVER-39862 make setShardVersion pass along error code
Diffstat (limited to 'src/mongo/db/s/set_shard_version_command.cpp')
-rw-r--r-- | src/mongo/db/s/set_shard_version_command.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/s/set_shard_version_command.cpp b/src/mongo/db/s/set_shard_version_command.cpp index 10564146ca4..33c17c478d2 100644 --- a/src/mongo/db/s/set_shard_version_command.cpp +++ b/src/mongo/db/s/set_shard_version_command.cpp @@ -373,6 +373,7 @@ public: warning() << errmsg; result.append("ns", nss.ns()); + result.append("code", status.code()); requestedVersion.appendLegacyWithField(&result, "version"); currVersion.appendLegacyWithField(&result, "globalVersion"); result.appendBool("reloadConfig", true); |