定義
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
- 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.abortUnshardCollection( "<database>.<collection>" )
パラメーター
フィールド | タイプ | 必要性 | 説明 |
|---|---|---|---|
| string | 必須 | アン シャーディングを停止するデータベースとコレクションを指定します。 |
例
次の例では、 sales.us_accountsコレクションの進行中のシャーディング操作を停止します。
sh.abortUnshardCollection( "sales.us_accounts" )