diff options
author | Bernard Gorman <bernard.gorman@gmail.com> | 2018-06-12 13:35:22 +0100 |
---|---|---|
committer | Bernard Gorman <bernard.gorman@gmail.com> | 2018-06-22 04:03:41 +0100 |
commit | c798e34f5479c43da70d5f9f7d4919f16e6dbd50 (patch) | |
tree | fa2e47d9c74a26fa01874c9cc76a13f6dbc31dbe /src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp | |
parent | 04d8939bd9c6776da8b7effe9c4bcaa20591d88f (diff) | |
download | mongo-c798e34f5479c43da70d5f9f7d4919f16e6dbd50.tar.gz |
SERVER-35329 Package agg projection code for use outside of agg execution
Diffstat (limited to 'src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp b/src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp index b429dbba6bf..ea9131fa5ef 100644 --- a/src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp +++ b/src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp @@ -148,10 +148,9 @@ Value DocumentSourceSampleFromRandomCursor::serialize( return Value(DOC(getSourceName() << DOC("size" << _size))); } -DocumentSource::GetDepsReturn DocumentSourceSampleFromRandomCursor::getDependencies( - DepsTracker* deps) const { +DepsTracker::State DocumentSourceSampleFromRandomCursor::getDependencies(DepsTracker* deps) const { deps->fields.insert(_idField); - return SEE_NEXT; + return DepsTracker::State::SEE_NEXT; } intrusive_ptr<DocumentSourceSampleFromRandomCursor> DocumentSourceSampleFromRandomCursor::create( |