From 5d57590ea68f4258f2df5050840ab186c2709e14 Mon Sep 17 00:00:00 2001 From: Mariano Shaar <47160550+shaargtz@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:51:07 -0400 Subject: [PATCH] SERVER-89690 Add diagnostic log messages to query_stats_regex.js [7.0] (#28523) GitOrigin-RevId: 2f3fe522712c4d6fc18c0bfdbad7b10237dbf6ae --- jstests/noPassthrough/queryStats/query_stats_regex.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jstests/noPassthrough/queryStats/query_stats_regex.js b/jstests/noPassthrough/queryStats/query_stats_regex.js index e405682f63db5..23d7893ad7b13 100644 --- a/jstests/noPassthrough/queryStats/query_stats_regex.js +++ b/jstests/noPassthrough/queryStats/query_stats_regex.js @@ -28,14 +28,15 @@ assert.commandWorked(bulk.execute()); { coll.find({foo: {$regex: "/^ABC/i"}}).itcount(); const queryStats = getLatestQueryStatsEntry(testDB); - assert.eq({"foo": {"$regex": "?string"}}, queryStats.key.queryShape.filter); + assert.eq({"foo": {"$regex": "?string"}}, queryStats.key.queryShape.filter, queryStats); } { coll.find({foo: {$regex: ".*", $options: "m"}}).itcount(); const queryStats = getLatestQueryStatsEntry(testDB); assert.eq({"foo": {"$regex": "?string", "$options": "?string"}}, - queryStats.key.queryShape.filter); + queryStats.key.queryShape.filter, + queryStats); } MongoRunner.stopMongod(conn);