summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/update.cpp')
-rw-r--r--src/mongo/db/exec/update.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/update.cpp b/src/mongo/db/exec/update.cpp
index 7d2a768664f..e37d716d338 100644
--- a/src/mongo/db/exec/update.cpp
+++ b/src/mongo/db/exec/update.cpp
@@ -619,7 +619,7 @@ Status UpdateStage::applyUpdateOpsForInsert(const CanonicalQuery* cq,
BSONObj original;
if (cq) {
- Status status = driver->populateDocumentWithQueryFields(cq, immutablePaths, *doc);
+ Status status = driver->populateDocumentWithQueryFields(*cq, immutablePaths, *doc);
if (!status.isOK()) {
return status;
}