ANNOUNCEMENT: Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.
Learn more
Docs 菜单

abortUnshardCollection

abortUnshardCollection

停止正在进行的 unshardCollection 操作。

8.0版本新增

此命令必须在admin数据库上运行。

此命令可用于以下环境中托管的部署:

注意

此命令在Atlas共享层或Atlas Serverless 上不可用。

db.adminCommand( {
abortUnshardCollection: "<database>.<collection>"
} )
字段
类型
必要性
说明

abortUnshardCollection

字符串

必需

指定要停止移动的数据库和集合。

以下示例停止正在进行的sales.us_accounts集合取消分片操作。

db.adminCommand( {
abortUnshardCollection: "sales.us_accounts"
} )