定義
abortMoveCollection進行中の
moveCollection操作を停止します。バージョン8.0の新機能。
このコマンドは
adminデータベースで実行する必要があります。
互換性
このコマンドは、次の環境でホストされている配置で使用できます。
- MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud
重要
This command is not supported in M0 and Flex clusters. For more information, see Unsupported Commands.
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン
構文
db.adminCommand( { abortMoveCollection: "<database>.<collection>" } )
コマンドフィールド
フィールド | タイプ | 必要性 | 説明 |
|---|---|---|---|
| string | 必須 | 移動を停止するデータベースとコレクションを指定します。 |
例
次の例では、 sales.us_accountsコレクションの新しいシャードへの進行中の移動を停止します。
db.adminCommand( { abortMoveCollection: "sales.us_accounts" } )