diff options
Diffstat (limited to 'src/mongo/db/repl/rs_rollback_test.cpp')
-rw-r--r-- | src/mongo/db/repl/rs_rollback_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/rs_rollback_test.cpp b/src/mongo/db/repl/rs_rollback_test.cpp index 0105bd8b6eb..b785eadeaa5 100644 --- a/src/mongo/db/repl/rs_rollback_test.cpp +++ b/src/mongo/db/repl/rs_rollback_test.cpp @@ -1815,7 +1815,7 @@ TEST_F(RSRollbackTest, RollbackApplyOpsCommand) { UUID uuid, const BSONObj& filter) const override { int numFields = 0; - for (const auto element : filter) { + for (const auto& element : filter) { ++numFields; ASSERT_EQUALS("_id", element.fieldNameStringData()) << filter; } @@ -2502,7 +2502,7 @@ TEST_F(RSRollbackTest, RollbackFetchesTransactionOperationBeforeCommonPoint) { // This unit test does not test transaction table fetches. return {BSONObj(), NamespaceString::kSessionTransactionsTableNamespace}; } - for (const auto element : filter) { + for (const auto& element : filter) { ++numFields; ASSERT_EQUALS("_id", element.fieldNameStringData()) << filter; } |