Compatibility Changes in MongoDB 5.2MongoDB 5.2中的兼容性更改

On this page本页内容

Important重要

MongoDB 5.2 is a rapid release and is only supported for MongoDB Atlas. MongoDB 5.2 is not supported for use on-premises. MongoDB 5.2是一个快速版本,只支持MongoDB Atlas。MongoDB 5.2不支持在本地使用。For more information, see MongoDB Versioning.有关更多信息,请参阅MongoDB版本控制

The following 5.2 changes can affect compatibility with older versions of MongoDB.以下5.2更改可能会影响与旧版本MongoDB的兼容性。

Removed Parameters被删除的参数

Removed mongod Options被删除的mongod选项

MongodB removes the following mongod options:MongodB删除了以下mongod选项:

Removed mongod Options被删除的mongod选项Description描述
--cpuMongoDB 5.2 removes the --cpu mongod option.MongoDB 5.2删除了--cpu mongod选项。

Existing Indexes Can Be Dropped During an Index Build在索引生成期间,可以删除现有索引

Starting in MongoDB 5.2, you can use dropIndexes or db.collection.dropIndexes() to drop existing indexes on the same collection even if there is an index build in progress. 从MongoDB 5.2开始,您可以使用dropIndexesdb.collection.dropIndexes()删除同一个集合上的现有索引,即使正在生成索引。In earlier versions, attempting to drop a different index during an in-progress index build results in a BackgroundOperationInProgressForNamespace error.在早期版本中,在进行中的索引生成期间尝试删除其他索引会导致BackgroundOperationInProgressForNamespace错误。

←  Release Notes for MongoDB 5.2Release Notes for MongoDB 5.1 →