https://github.com/mongodb/mongo/blob/7172ed3a9ce349bb02c5f56c8c583d33944852b8/src/mongo/db/catalog/index_catalog_impl.cpp#L595