From 52e0b6886e5ce44feb563a71cceaf4d5fffc8c3a Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Mon, 2 Aug 2021 06:38:59 -0400 Subject: [PATCH] SERVER-58067 fix XCode12 compile warning --- src/mongo/db/timeseries/timeseries_dotted_path_support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongo/db/timeseries/timeseries_dotted_path_support.cpp b/src/mongo/db/timeseries/timeseries_dotted_path_support.cpp index 8f2387f908a..e88ac6e20eb 100644 --- a/src/mongo/db/timeseries/timeseries_dotted_path_support.cpp +++ b/src/mongo/db/timeseries/timeseries_dotted_path_support.cpp @@ -162,7 +162,7 @@ void _extractAllElementsAlongBucketPath(const BSONObj& obj, } case 2: { // Unbucketing magic happens here. - for (const BSONElement e : obj) { + for (const BSONElement& e : obj) { std::string subPath = e.fieldName(); if (!path.empty()) { subPath.append("." + path);