summaryrefslogtreecommitdiff
path: root/src/mongo/db/field_ref_set.h
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2013-12-20 12:44:40 -0500
committerScott Hernandez <scotthernandez@gmail.com>2013-12-20 14:16:08 -0500
commit191e9e47d8c211acdf7bef6850c261c2a40e2a8c (patch)
treeb5c4c627eb053ec283551ec8d2ad5f317dc25b8c /src/mongo/db/field_ref_set.h
parent3b5b35c15690769df2a11a75a3c6e6afd7c2169a (diff)
downloadmongo-191e9e47d8c211acdf7bef6850c261c2a40e2a8c.tar.gz
SERVER-12126: Improve update validation performance
Diffstat (limited to 'src/mongo/db/field_ref_set.h')
-rw-r--r--src/mongo/db/field_ref_set.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/field_ref_set.h b/src/mongo/db/field_ref_set.h
index 71a48502739..e7258c2a184 100644
--- a/src/mongo/db/field_ref_set.h
+++ b/src/mongo/db/field_ref_set.h
@@ -94,8 +94,10 @@ namespace mongo {
/**
* Find all inserted fields which conflict with the FieldRef 'toCheck' by the semantics
* of 'insert', and add those fields to the 'conflicts' set.
+ *
+ * Return true if conflicts were found.
*/
- void getConflicts(const FieldRef* toCheck, FieldRefSet* conflicts) const;
+ bool findConflicts(const FieldRef* toCheck, FieldRefSet* conflicts) const;
void clear() {
_fieldSet.clear();