summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_current_op.cpp
diff options
context:
space:
mode:
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++);
}