summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2022-03-03 15:05:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-03 16:30:55 +0000
commit3e50ef2b069bb09ab9e718730b55f4febe5e4b8e (patch)
treed1bbbc5af1eb207ec37b156ba8bba6948362df02 /src/mongo/db/pipeline
parent65cf760916f7fe0e3d06f5e06a53e0a96b24d947 (diff)
downloadmongo-3e50ef2b069bb09ab9e718730b55f4febe5e4b8e.tar.gz
SERVER-64124 Limit instantiation of AccumulatorTopBottomN template
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r--src/mongo/db/pipeline/accumulator_multi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/accumulator_multi.h b/src/mongo/db/pipeline/accumulator_multi.h
index 141623ac795..554123924cc 100644
--- a/src/mongo/db/pipeline/accumulator_multi.h
+++ b/src/mongo/db/pipeline/accumulator_multi.h
@@ -332,4 +332,10 @@ private:
boost::optional<SortKeyComparator> _sortKeyComparator;
boost::optional<std::multimap<Value, Value, std::function<bool(Value, Value)>>> _map;
};
+
+extern template class AccumulatorTopBottomN<TopBottomSense::kBottom, false>;
+extern template class AccumulatorTopBottomN<TopBottomSense::kBottom, true>;
+extern template class AccumulatorTopBottomN<TopBottomSense::kTop, false>;
+extern template class AccumulatorTopBottomN<TopBottomSense::kTop, true>;
+
} // namespace mongo