summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/update_result.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/update_result.cpp')
-rw-r--r--src/mongo/db/ops/update_result.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/mongo/db/ops/update_result.cpp b/src/mongo/db/ops/update_result.cpp
index 64b33243131..93f48fae668 100644
--- a/src/mongo/db/ops/update_result.cpp
+++ b/src/mongo/db/ops/update_result.cpp
@@ -39,21 +39,20 @@
namespace mongo {
- UpdateResult::UpdateResult(bool existing_,
- bool modifiers_,
- unsigned long long numDocsModified_,
- unsigned long long numMatched_,
- const BSONObj& upsertedObject_)
- : existing(existing_),
- modifiers(modifiers_),
- numDocsModified(numDocsModified_),
- numMatched(numMatched_) {
-
- BSONElement id = upsertedObject_["_id"];
- if ( ! existing && numMatched == 1 && !id.eoo() ) {
- upserted = id.wrap(kUpsertedFieldName);
- }
- LOG(4) << "UpdateResult -- " << toString();
+UpdateResult::UpdateResult(bool existing_,
+ bool modifiers_,
+ unsigned long long numDocsModified_,
+ unsigned long long numMatched_,
+ const BSONObj& upsertedObject_)
+ : existing(existing_),
+ modifiers(modifiers_),
+ numDocsModified(numDocsModified_),
+ numMatched(numMatched_) {
+ BSONElement id = upsertedObject_["_id"];
+ if (!existing && numMatched == 1 && !id.eoo()) {
+ upserted = id.wrap(kUpsertedFieldName);
}
+ LOG(4) << "UpdateResult -- " << toString();
+}
} // namespace mongo