summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierlauro Sciarelli <pierlauro.sciarelli@mongodb.com>2021-02-04 11:29:18 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-04 13:29:21 +0000
commitbbf5805c5876f4a4b7b699c853d03d0727c82241 (patch)
tree9637f3af9e8b809605ff7a12352bda5907e9cedf
parent156bf0ff52ac8efbc7b417ec9ddbc6facc48e0f4 (diff)
downloadmongo-bbf5805c5876f4a4b7b699c853d03d0727c82241.tar.gz
SERVER-53651 Just search for user-issued profiled aggregation in read_pref_cmd.js
-rw-r--r--jstests/sharding/read_pref_cmd.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/sharding/read_pref_cmd.js b/jstests/sharding/read_pref_cmd.js
index e41a3c0b670..92dcf5e5278 100644
--- a/jstests/sharding/read_pref_cmd.js
+++ b/jstests/sharding/read_pref_cmd.js
@@ -179,9 +179,15 @@ var testReadPreference = function(conn, hostList, isMongos, mode, tagSets, secEx
}
// Test on sharded
- cmdTest({aggregate: 'user', pipeline: [{$project: {x: 1}}], cursor: {}},
+ const aggregationComment = 'test on sharded';
+ cmdTest({
+ aggregate: 'user',
+ pipeline: [{$project: {x: 1}}],
+ cursor: {},
+ comment: aggregationComment
+ },
true,
- formatProfileQuery({aggregate: 'user'}));
+ formatProfileQuery({aggregate: 'user', comment: aggregationComment}));
// Test on non-sharded
cmdTest({aggregate: 'mrIn', pipeline: [{$project: {x: 1}}], cursor: {}},