diff options
author | James Wahlin <james@mongodb.com> | 2018-03-12 15:52:10 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-03-14 12:04:30 -0400 |
commit | 8727cdfc81358fa829cb86153606b84efca4edfd (patch) | |
tree | de4e06f772684611663f0923db5761fda9468ae9 /src/mongo/db/commands/run_aggregate.cpp | |
parent | ebbd763514514d3ed77c25477c61d71df0d91420 (diff) | |
download | mongo-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.cpp | 1 |
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(); } } |