summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/noPassthrough/wt_operation_stats.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/wt_operation_stats.js b/jstests/noPassthrough/wt_operation_stats.js
index bee9fd9eded..cccdcb59547 100644
--- a/jstests/noPassthrough/wt_operation_stats.js
+++ b/jstests/noPassthrough/wt_operation_stats.js
@@ -77,7 +77,8 @@
}
checkLogStats();
- let profileObj = getLatestProfilerEntry(testDB);
+ // Look for the storage statistics in the profiled output of the find command.
+ let profileObj = getLatestProfilerEntry(testDB, {op: "query", ns: "wt_op_stat.foo"});
checkSystemProfileStats(profileObj, "bytesRead");
MongoRunner.stopMongod(conn);