diff options
Diffstat (limited to 'src/mongo/db/timeseries/bucket_catalog_helpers_test.cpp')
-rw-r--r-- | src/mongo/db/timeseries/bucket_catalog_helpers_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/timeseries/bucket_catalog_helpers_test.cpp b/src/mongo/db/timeseries/bucket_catalog_helpers_test.cpp index 4c85c9133f7..54356c1cd1f 100644 --- a/src/mongo/db/timeseries/bucket_catalog_helpers_test.cpp +++ b/src/mongo/db/timeseries/bucket_catalog_helpers_test.cpp @@ -366,7 +366,7 @@ TEST_F(BucketCatalogHelpersTest, FindSuitableBucketForMeasurements) { // no meta field specified. { std::vector<BSONObj> docsWithOutMeta; - for (auto doc : docsWithSuitableBuckets) { + for (const auto& doc : docsWithSuitableBuckets) { docsWithOutMeta.push_back(doc.removeField(_metaField)); } |