定義
sh.abortReshardCollection(namespace)バージョン 5.0 の新機能。
During a resharding operation, you can abort the operation with the
sh.abortReshardCollection()method.You can abort a resharding operation at any point until the commit phase. If the resharding operation has reached the commit phase before you run the
sh.abortReshardCollection()method, the method returns an error.重要
mongosh メソッド
This page documents a
mongoshmethod. This is not the documentation for database commands or language-specific drivers, such as Node.js.データベースコマンドについては、
abortReshardCollectionコマンドを参照してください。MongoDB API ドライバーについては、各言語の「MongoDB ドライバーのドキュメント」を参照してください。
互換性
このメソッドは、次の環境でホストされている配置で使用できます。
- 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 のバージョン
構文
The sh.abortReshardCollection() method has the following syntax:
sh.abortReshardCollection( <namespace> )
Parameter
The sh.abortReshardCollection() method takes the following parameter:
Parameter | タイプ | 説明 |
|---|---|---|
文字列 |
|
例
リシャーディング操作の中止
次の例えでは、 sales.ordersコレクションで実行中の再シャーディング操作を中止します。
sh.abortReshardCollection("sales.orders")