summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/wt_operation_stats.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/wt_operation_stats.js')
-rw-r--r--jstests/noPassthrough/wt_operation_stats.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/noPassthrough/wt_operation_stats.js b/jstests/noPassthrough/wt_operation_stats.js
index f3bc4f5aa9d..39f32742ca7 100644
--- a/jstests/noPassthrough/wt_operation_stats.js
+++ b/jstests/noPassthrough/wt_operation_stats.js
@@ -10,8 +10,12 @@
'use strict';
load("jstests/libs/profiler.js"); // For getLatestProfilerEntry.
+load("jstests/libs/logv2_helpers.js");
-const readStatRegx = /storage:{ data: { bytesRead: ([0-9]+)/;
+let readStatRegx = /storage:{ data: { bytesRead: ([0-9]+)/;
+if (isJsonLogNoConn()) {
+ readStatRegx = /"storage":{"data":{"bytesRead":([0-9]+)/;
+}
let checkLogStats = function() {
// Check if the log output contains the expected statistics.