diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-08-22 22:53:08 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-08-30 11:47:14 -0400 |
commit | bfbeb0cbabd9ae85f34df430474c9e524b274862 (patch) | |
tree | 4697dbc84e56120a5f34a1bd82182dc1e8740131 /src/mongo/s/query/router_stage_skip.cpp | |
parent | 88ef24561ef69ac7756b80256a86515180b830a3 (diff) | |
download | mongo-bfbeb0cbabd9ae85f34df430474c9e524b274862.tar.gz |
SERVER-30799 Avoid misleading empty batches with tailable cursors.
This bug impacts tailable cursors being sent through a mongos.
Diffstat (limited to 'src/mongo/s/query/router_stage_skip.cpp')
-rw-r--r-- | src/mongo/s/query/router_stage_skip.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/s/query/router_stage_skip.cpp b/src/mongo/s/query/router_stage_skip.cpp index 7510e3aefd6..50d2107b14c 100644 --- a/src/mongo/s/query/router_stage_skip.cpp +++ b/src/mongo/s/query/router_stage_skip.cpp @@ -34,8 +34,10 @@ namespace mongo { -RouterStageSkip::RouterStageSkip(std::unique_ptr<RouterExecStage> child, long long skip) - : RouterExecStage(std::move(child)), _skip(skip) { +RouterStageSkip::RouterStageSkip(OperationContext* opCtx, + std::unique_ptr<RouterExecStage> child, + long long skip) + : RouterExecStage(opCtx, std::move(child)), _skip(skip) { invariant(skip > 0); } |