summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-10-30 22:28:38 -0400
committerEliot Horowitz <eliot@10gen.com>2014-10-31 07:22:49 -0400
commitfd316bf9977f0109c288e3d8b298b9c6ac62bc70 (patch)
treed47e07dd60eb78ba9e3cad37458544936c1ada70 /src/mongo/db/ops
parentb55f988fcee0ba567e2f9981e3683d4500874ff5 (diff)
downloadmongo-fd316bf9977f0109c288e3d8b298b9c6ac62bc70.tar.gz
SERVER-14425: handle deadlocks in the middle up a multi-update
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r--src/mongo/db/ops/update_executor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/ops/update_executor.cpp b/src/mongo/db/ops/update_executor.cpp
index 2975b67f745..d403ea9edeb 100644
--- a/src/mongo/db/ops/update_executor.cpp
+++ b/src/mongo/db/ops/update_executor.cpp
@@ -270,6 +270,7 @@ namespace mongo {
&cqRaw,
whereCallback);
if (status.isOK()) {
+ cqRaw->setIsForWrite( true );
_canonicalQuery.reset(cqRaw);
_isQueryParsed = true;
}