From 28d56a3e4cd38a6060539ea7a2824bd076b58d9d Mon Sep 17 00:00:00 2001 From: Yoonsoo Kim Date: Thu, 24 Jun 2021 23:10:49 +0000 Subject: SERVER-57897 Add readPrefMode option to benchRun find/findOne ops (cherry picked from commit b8b5d3de4df8e0f82491b5d5ccbc4b635f61aecf) --- src/mongo/shell/bench.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mongo/shell/bench.h') diff --git a/src/mongo/shell/bench.h b/src/mongo/shell/bench.h index 64e3dc8e60a..8938383620d 100644 --- a/src/mongo/shell/bench.h +++ b/src/mongo/shell/bench.h @@ -139,6 +139,9 @@ struct BenchRunOp { // resources that a snapshot transaction would hold for a time. int maxRandomMillisecondDelayBeforeGetMore{0}; + // Format: {$readPreference: {mode: modeStr}}. Only mode field is allowed. + BSONObj readPrefObj; + // This is an owned copy of the raw operation. All unowned members point into this. BSONObj myBsonOp; }; -- cgit v1.2.1