summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/index_descriptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index/index_descriptor.h')
-rw-r--r--src/mongo/db/index/index_descriptor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/index/index_descriptor.h b/src/mongo/db/index/index_descriptor.h
index 35a005371b4..f4f48cb35b9 100644
--- a/src/mongo/db/index/index_descriptor.h
+++ b/src/mongo/db/index/index_descriptor.h
@@ -88,7 +88,7 @@ public:
static constexpr StringData kUniqueFieldName = "unique"_sd;
static constexpr StringData kWeightsFieldName = "weights"_sd;
static constexpr StringData kOriginalSpecFieldName = "originalSpec"_sd;
- static constexpr StringData kDisallowNewDuplicateKeysFieldName = "disallowNewDuplicateKeys"_sd;
+ static constexpr StringData kPrepareUniqueFieldName = "prepareUnique"_sd;
/**
* infoObj is a copy of the index-describing BSONObj contained in the catalog.
@@ -227,8 +227,8 @@ public:
return _partialFilterExpression;
}
- bool disallowNewDuplicateKeys() const {
- return _disallowNewDuplicateKeys;
+ bool prepareUnique() const {
+ return _prepareUnique;
}
/**
@@ -280,7 +280,7 @@ private:
IndexVersion _version;
BSONObj _collation;
BSONObj _partialFilterExpression;
- bool _disallowNewDuplicateKeys = false;
+ bool _prepareUnique = false;
// Many query stages require going from an IndexDescriptor to its IndexCatalogEntry, so for
// now we need this.