-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Engines - Server Integration
-
Fully Compatible
-
ALL
-
PastaLaVista - 2025-03-18, pro-duck-tive - 2025-04-01
-
0
-
None
-
None
-
None
-
None
-
None
-
None
-
None
I think line 439 should be IndexDescriptor::kHiddenFieldName, not IndexDescriptor::kIndexNameFieldName
} else if (IndexDescriptor::kIndexNameFieldName == indexSpecElemFieldName) {
if (indexSpecElem.type() != BSONType::String) {
return {ErrorCodes::TypeMismatch,
str::stream()
<< "The field '" << IndexDescriptor::kIndexNameFieldName
<< "' must be a string, but got " << typeName(indexSpecElem.type())};
}
hasIndexNameField = true;
} else if (IndexDescriptor::kHiddenFieldName == indexSpecElemFieldName) {
if (indexSpecElem.type() != BSONType::Bool) {
return {ErrorCodes::TypeMismatch,
str::stream()
// HERE - I think this message should refer to kHiddenFieldName
<< "The field '" << IndexDescriptor::kIndexNameFieldName
<< "' must be a bool, but got " << typeName(indexSpecElem.type())};
}