summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index 06a91ad79f0..03face35cec 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -81,9 +81,8 @@ public:
// Aggregations that are run directly against a collection allow any read concern.
// Otherwise, if the aggregate is collectionless then the read concern must be 'local'
// (e.g. $currentOp). The exception to this is a $changeStream on a whole database,
- // which is
- // considered collectionless but must be read concern 'majority'. Further read concern
- // validation is done one the pipeline is parsed.
+ // which is considered collectionless but must be read concern 'majority'. Further read
+ // concern validation is done one the pipeline is parsed.
return level == repl::ReadConcernLevel::kLocalReadConcern ||
level == repl::ReadConcernLevel::kMajorityReadConcern ||
!AggregationRequest::parseNs(_dbName, _request.body).isCollectionlessAggregateNS();