diff --git a/db/update.cpp b/db/update.cpp index be195a762dd..26f79b41495 100644 --- a/db/update.cpp +++ b/db/update.cpp @@ -235,7 +235,8 @@ namespace mongo { BSONElement e = obj.getFieldDotted(m.fieldName); if ( e.eoo() ) { - inPlacePossible = (m.op == Mod::UNSET); + if ( inPlacePossible ) + inPlacePossible = (m.op == Mod::UNSET); } else { switch( m.op ) {