diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-03-07 12:29:22 -0500 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-03-12 14:59:17 -0400 |
commit | 3f723beb10caf6bd809b7df05c34b6a97402dadb (patch) | |
tree | 170e3d1c38808281fb216f4e934abcd336b1743c /src/mongo/db/s/check_sharding_index_command.cpp | |
parent | b1102c617e04ff751d702435f9d4521727e579e1 (diff) | |
download | mongo-3f723beb10caf6bd809b7df05c34b6a97402dadb.tar.gz |
SERVER-33542 Avoid swallowing error codes from PlanExecutor errors
Diffstat (limited to 'src/mongo/db/s/check_sharding_index_command.cpp')
-rw-r--r-- | src/mongo/db/s/check_sharding_index_command.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/s/check_sharding_index_command.cpp b/src/mongo/db/s/check_sharding_index_command.cpp index 2d0d499fb1b..b638c9a0e7d 100644 --- a/src/mongo/db/s/check_sharding_index_command.cpp +++ b/src/mongo/db/s/check_sharding_index_command.cpp @@ -202,9 +202,8 @@ public: if (PlanExecutor::DEAD == state || PlanExecutor::FAILURE == state) { return CommandHelpers::appendCommandStatus( result, - Status(ErrorCodes::OperationFailed, - str::stream() << "Executor error while checking sharding index: " - << WorkingSetCommon::toStatusString(currKey))); + WorkingSetCommon::getMemberObjectStatus(currKey).withContext( + "Executor error while checking sharding index")); } return true; |