summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/run_aggregate.cpp
diff options
context:
space:
mode:
authorGil Alon <gil.alon@mongodb.com>2023-03-29 12:58:18 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-29 14:09:26 +0000
commit58a69ba924e2ca557bf1c208fed59fc948107bd0 (patch)
tree79b79e9df5e01fb08ca55e4fdb3c981272481ace /src/mongo/db/commands/run_aggregate.cpp
parent276d4d7f6d34bc4c6763107d33a93a3deb2c567b (diff)
downloadmongo-58a69ba924e2ca557bf1c208fed59fc948107bd0.tar.gz
SERVER-72687 Revert $out to time-series collections
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r--src/mongo/db/commands/run_aggregate.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp
index 88efa301556..7c4166b8bf3 100644
--- a/src/mongo/db/commands/run_aggregate.cpp
+++ b/src/mongo/db/commands/run_aggregate.cpp
@@ -930,8 +930,7 @@ Status runAggregate(OperationContext* opCtx,
resolvedView.getNamespace(),
ShardVersion::UNSHARDED() /* shardVersion */,
boost::none /* databaseVersion */);
- }
-
+ };
uassert(std::move(resolvedView),
"Explain of a resolved view must be executed by mongos",
!ShardingState::get(opCtx)->enabled() || !request.getExplain());