summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/modifier_bit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/modifier_bit.cpp')
-rw-r--r--src/mongo/db/ops/modifier_bit.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/mongo/db/ops/modifier_bit.cpp b/src/mongo/db/ops/modifier_bit.cpp
index d6acbfe1ff8..fb7ae3f45eb 100644
--- a/src/mongo/db/ops/modifier_bit.cpp
+++ b/src/mongo/db/ops/modifier_bit.cpp
@@ -84,7 +84,8 @@ Status ModifierBit::init(const BSONElement& modExpr, const Options& opts, bool*
if (foundDollar && foundCount > 1) {
return Status(ErrorCodes::BadValue,
str::stream() << "Too many positional (i.e. '$') elements found in path '"
- << _fieldRef.dottedField() << "'");
+ << _fieldRef.dottedField()
+ << "'");
}
if (modExpr.type() != mongo::Object)
@@ -120,7 +121,9 @@ Status ModifierBit::init(const BSONElement& modExpr, const Options& opts, bool*
return Status(ErrorCodes::BadValue,
str::stream()
<< "The $bit modifier only supports 'and', 'or', and 'xor', not '"
- << payloadFieldName << "' which is an unknown operator: {" << curOp
+ << payloadFieldName
+ << "' which is an unknown operator: {"
+ << curOp
<< "}");
}
@@ -128,7 +131,9 @@ Status ModifierBit::init(const BSONElement& modExpr, const Options& opts, bool*
return Status(ErrorCodes::BadValue,
str::stream()
<< "The $bit modifier field must be an Integer(32/64 bit); a '"
- << typeName(curOp.type()) << "' is not supported here: {" << curOp
+ << typeName(curOp.type())
+ << "' is not supported here: {"
+ << curOp
<< "}");
const OpEntry entry = {SafeNum(curOp), op};
@@ -191,7 +196,8 @@ Status ModifierBit::prepare(mutablebson::Element root,
mb::Element idElem = mb::findElementNamed(root.leftChild(), "_id");
return Status(ErrorCodes::BadValue,
str::stream() << "Cannot apply $bit to a value of non-integral type."
- << idElem.toString() << " has the field "
+ << idElem.toString()
+ << " has the field "
<< _preparedState->elemFound.getFieldName()
<< " of non-integer type "
<< typeName(_preparedState->elemFound.getType()));
@@ -260,7 +266,9 @@ Status ModifierBit::log(LogBuilder* logBuilder) const {
if (!logElement.ok()) {
return Status(ErrorCodes::InternalError,
str::stream() << "Could not append entry to $bit oplog entry: "
- << "set '" << _fieldRef.dottedField() << "' -> "
+ << "set '"
+ << _fieldRef.dottedField()
+ << "' -> "
<< _preparedState->newValue.debugString());
}
return logBuilder->addToSets(logElement);