summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
Diffstat (limited to 'jstests')
-rw-r--r--jstests/noPassthrough/lock_stats_suboperation_logs.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/noPassthrough/lock_stats_suboperation_logs.js b/jstests/noPassthrough/lock_stats_suboperation_logs.js
index 515aad0baa7..9024f2ee179 100644
--- a/jstests/noPassthrough/lock_stats_suboperation_logs.js
+++ b/jstests/noPassthrough/lock_stats_suboperation_logs.js
@@ -77,6 +77,10 @@
for (let line of lines) {
if ((match = lockWaitTimeRegex.exec(line)) !== null) {
let lockWaitTime = match[1];
+ // Ignoring 'noise' lock stats from other operations such as locks taken during
+ // validation stage.
+ if (lockWaitTime < blockedMillis * 1000)
+ continue;
if (supposedLockWaitTime === undefined)
supposedLockWaitTime = lockWaitTime;
else