diff options
author | David Storch <david.storch@mongodb.com> | 2021-10-01 13:24:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-01 14:08:31 +0000 |
commit | fe4cf6134b16f102591053d6f4fe11e5cc0eb3ec (patch) | |
tree | 559991d99827a8b3252e2fdfb14b90a548de0793 /jstests/libs | |
parent | 0950600446ee8030132bacc9c00eb4ebca411500 (diff) | |
download | mongo-fe4cf6134b16f102591053d6f4fe11e5cc0eb3ec.tar.gz |
SERVER-58210 Eliminate unnecessary RPC protocol negotiation code
Diffstat (limited to 'jstests/libs')
-rw-r--r-- | jstests/libs/profiler.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/jstests/libs/profiler.js b/jstests/libs/profiler.js index ff066013f83..9b95bc60e88 100644 --- a/jstests/libs/profiler.js +++ b/jstests/libs/profiler.js @@ -52,17 +52,6 @@ function getLatestProfilerEntry(profileDB, filter) { return getNLatestProfilerEntries(profileDB, 1, filter)[0]; } -// Returns a string representing the wire protocol used for commands run on the given connection. -// This string matches the system.profile "protocol" field when commands are profiled. -function getProfilerProtocolStringForCommand(conn) { - const protocols = conn.getClientRPCProtocols(); - if ("all" === protocols || /Msg/.test(protocols)) - return "op_msg"; - if (/Query/.test(protocols)) - return "op_query"; - doassert(`Unknown prototocol string ${protocols}`); -} - /** * Throws an assertion if the profiler contains more than 'maxExpectedMatches' entries matching * "filter", or if there are no matches. Optional arguments "errorMsgFilter" and "errorMsgProj" |