summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/bench.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp
index c2614960c11..3624bbb69bb 100644
--- a/src/mongo/shell/bench.cpp
+++ b/src/mongo/shell/bench.cpp
@@ -1173,9 +1173,15 @@ void BenchRunOp::executeOnce(DBClientBase* conn,
BSONObjBuilder singleUpdate;
singleUpdate.append("q", query);
switch (this->update.type()) {
- case write_ops::UpdateModification::Type::kClassic: {
+ case write_ops::UpdateModification::Type::kReplacement: {
singleUpdate.append("u",
- fixQuery(this->update.getUpdateClassic(),
+ fixQuery(this->update.getUpdateReplacement(),
+ *state->bsonTemplateEvaluator));
+ break;
+ }
+ case write_ops::UpdateModification::Type::kModifier: {
+ singleUpdate.append("u",
+ fixQuery(this->update.getUpdateModifier(),
*state->bsonTemplateEvaluator));
break;
}