diff options
author | David Storch <david.storch@10gen.com> | 2015-08-20 10:07:28 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-08-21 12:05:47 -0400 |
commit | 13d18ba833b50f9a09e5b7fa8f65bbe226af99ee (patch) | |
tree | f381dce8b676529e239355216c3fe27bff9f74b2 /src/mongo/s/query/router_stage_mock.h | |
parent | fb3eabd249c18a0b2a1c3690231c1e135e3e6ce2 (diff) | |
download | mongo-13d18ba833b50f9a09e5b7fa8f65bbe226af99ee.tar.gz |
Revert "Revert "SERVER-19946 support the tailable option for unsharded capped collections in the new mongos read path""
This reverts commit a4620e8fdbb212763a4709f2885a595848f26ef4.
Diffstat (limited to 'src/mongo/s/query/router_stage_mock.h')
-rw-r--r-- | src/mongo/s/query/router_stage_mock.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/s/query/router_stage_mock.h b/src/mongo/s/query/router_stage_mock.h index 1cefe624c52..7f5f4727349 100644 --- a/src/mongo/s/query/router_stage_mock.h +++ b/src/mongo/s/query/router_stage_mock.h @@ -56,8 +56,14 @@ public: */ void queueError(Status status); + /** + * Queues an explicit boost::none response. The mock stage will also return boost::none + * automatically after emptying the queue of responses. + */ + void queueEOF(); + private: - std::queue<StatusWith<BSONObj>> _resultsQueue; + std::queue<StatusWith<boost::optional<BSONObj>>> _resultsQueue; }; } // namespace mongo |