diff options
Diffstat (limited to 'src/mongo/db/ops/modifier_set.cpp')
-rw-r--r-- | src/mongo/db/ops/modifier_set.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/db/ops/modifier_set.cpp b/src/mongo/db/ops/modifier_set.cpp index 1a566d7b1c9..842cffd87c2 100644 --- a/src/mongo/db/ops/modifier_set.cpp +++ b/src/mongo/db/ops/modifier_set.cpp @@ -32,7 +32,6 @@ namespace mongo { , idxFound(0) , elemFound(doc.end()) , boundDollar("") - , inPlace(false) , noOp(false) { } @@ -48,9 +47,6 @@ namespace mongo { // Value to bind to a $-positional field, if one is provided. std::string boundDollar; - // Could this mod be applied in place? - bool inPlace; - // This $set is a no-op? bool noOp; @@ -167,14 +163,6 @@ namespace mongo { return Status::OK(); } - // We may allow this $set to be in place if the value being set and the existing one - // have the same size. - if (_val.isNumber() && - (_preparedState->elemFound != root.getDocument().end()) && - (_val.type() == _preparedState->elemFound.getType())) { - execInfo->inPlace = _preparedState->inPlace = true; - } - // If the value being $set is the same as the one already in the doc, than this is a // noOp. if (_preparedState->elemFound.ok() && @@ -196,8 +184,6 @@ namespace mongo { return _preparedState->elemFound.setValueBSONElement(_val); } - dassert(!_preparedState->inPlace); - // // Complete document path logic // |