diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_group.cpp')
| -rw-r--r-- | src/mongo/db/pipeline/document_source_group.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_group.cpp b/src/mongo/db/pipeline/document_source_group.cpp index d0fe18d0078..c7ccdaa4d73 100644 --- a/src/mongo/db/pipeline/document_source_group.cpp +++ b/src/mongo/db/pipeline/document_source_group.cpp @@ -746,7 +746,7 @@ shared_ptr<Sorter<Value, Value>::Iterator> DocumentSourceGroup::spill() { _groups->clear(); // Zero out the current per-accumulation statement memory consumption, as the memory has been // freed by spilling. - for (auto accum : _accumulatedFields) { + for (const auto& accum : _accumulatedFields) { _memoryTracker.set(accum.fieldName, 0); } |
