summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_current_op.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2017-09-01 14:06:58 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2017-09-06 13:41:32 -0400
commited601dd01169b8c1fad9fb8d388da0523a1b48f5 (patch)
tree4d08bd1a36a12967fcb098432709da07236026b3 /src/mongo/db/pipeline/document_source_current_op.cpp
parent456ba544978a0d41a2261bf65da686874fb631a2 (diff)
downloadmongo-ed601dd01169b8c1fad9fb8d388da0523a1b48f5.tar.gz
SERVER-30899 Aggregations sent from a 3.4 mongos should serialize 3.4 metadata
Diffstat (limited to 'src/mongo/db/pipeline/document_source_current_op.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_current_op.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_current_op.cpp b/src/mongo/db/pipeline/document_source_current_op.cpp
index 7b22cdce75d..ce77e3da6ae 100644
--- a/src/mongo/db/pipeline/document_source_current_op.cpp
+++ b/src/mongo/db/pipeline/document_source_current_op.cpp
@@ -95,18 +95,18 @@ DocumentSource::GetNextResult DocumentSourceCurrentOp::getNext() {
_opsIter = _ops.begin();
- if (pExpCtx->fromRouter) {
+ if (pExpCtx->fromMongos) {
_shardName = _mongod->getShardName(pExpCtx->opCtx);
uassert(40465,
- "Aggregation request specified 'fromRouter' but unable to retrieve shard name "
+ "Aggregation request specified 'fromMongos' but unable to retrieve shard name "
"for $currentOp pipeline stage.",
!_shardName.empty());
}
}
if (_opsIter != _ops.end()) {
- if (!pExpCtx->fromRouter) {
+ if (!pExpCtx->fromMongos) {
return Document(*_opsIter++);
}