定義
sh.abortMoveCollection(namespace)進行中の
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 のバージョン
構文
sh.abortMoveCollection( "<namespace>.<collection>" )
パラメーター
フィールド | タイプ | 必要性 | 説明 |
|---|---|---|---|
| string | 必須 | 移動を停止するデータベースとコレクションを指定します。 |
例
次の例では、 sales.us_accountsコレクションの新しいシャードへの進行中の移動を停止します。
sh.abortMoveCollection( "sales.us_accounts" )