mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
fix $unset combined with other modifier bug
This commit is contained in:
parent
acafaffa32
commit
ead28f59e2
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user