diff options
Diffstat (limited to 'src/mongo/db/s/split_vector.cpp')
-rw-r--r-- | src/mongo/db/s/split_vector.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/s/split_vector.cpp b/src/mongo/db/s/split_vector.cpp index 3fd68070786..9b7bcdaa2eb 100644 --- a/src/mongo/db/s/split_vector.cpp +++ b/src/mongo/db/s/split_vector.cpp @@ -215,9 +215,8 @@ StatusWith<std::vector<BSONObj>> splitVector(OperationContext* opCtx, } if (PlanExecutor::DEAD == state || PlanExecutor::FAILURE == state) { - return {ErrorCodes::OperationFailed, - "Executor error during splitVector command: " + - WorkingSetCommon::toStatusString(currKey)}; + return WorkingSetCommon::getMemberObjectStatus(currKey).withContext( + "Executor error during splitVector command"); } if (!force) |