summaryrefslogtreecommitdiff
path: root/src/mongo/shell/bench.h
diff options
context:
space:
mode:
authorYoonsoo Kim <yoonsoo.kim@mongodb.com>2021-06-24 23:10:49 +0000
committerYoonsoo Kim <yoonsoo.kim@mongodb.com>2021-06-25 00:48:29 +0000
commit28d56a3e4cd38a6060539ea7a2824bd076b58d9d (patch)
treebf08d98368faba4d4dcba1f400d375d4eaaf93b3 /src/mongo/shell/bench.h
parentff5ac33fbb9e92a50b641d4007cfd9b05c6ed225 (diff)
downloadmongo-28d56a3e4cd38a6060539ea7a2824bd076b58d9d.tar.gz
SERVER-57897 Add readPrefMode option to benchRun find/findOne ops
(cherry picked from commit b8b5d3de4df8e0f82491b5d5ccbc4b635f61aecf)
Diffstat (limited to 'src/mongo/shell/bench.h')
-rw-r--r--src/mongo/shell/bench.h3
1 files changed, 3 insertions, 0 deletions
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;
};