summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/run_aggregate.cpp
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2018-03-12 15:52:10 -0400
committerJames Wahlin <james@mongodb.com>2018-03-14 12:04:30 -0400
commit8727cdfc81358fa829cb86153606b84efca4edfd (patch)
treede4e06f772684611663f0923db5761fda9468ae9 /src/mongo/db/commands/run_aggregate.cpp
parentebbd763514514d3ed77c25477c61d71df0d91420 (diff)
downloadmongo-8727cdfc81358fa829cb86153606b84efca4edfd.tar.gz
SERVER-33722 readConcern snapshot should return an error for metadata changes
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r--src/mongo/db/commands/run_aggregate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp
index d33a1a061ab..553f956cda6 100644
--- a/src/mongo/db/commands/run_aggregate.cpp
+++ b/src/mongo/db/commands/run_aggregate.cpp
@@ -542,6 +542,7 @@ Status runAggregate(OperationContext* opCtx,
const bool keepCursor =
handleCursorCommand(opCtx, origNss, pin.getCursor(), request, result);
if (keepCursor) {
+ opCtx->setStashedCursor();
cursorFreer.Dismiss();
}
}