CleanupReshardCollection
정의
cleanupReshardCollection
버전 5.0에 추가.
cleanupReshardCollection
명령은 실패한 리샤딩 작업 의 메타데이터를 정리합니다. 리샤딩 작업을 실행하는 동안 프라이머리 페일오버가 발생한 경우에만 이 명령을 실행하면 됩니다.명령은 다음과 같은 구문을 가집니다:
{ cleanupReshardCollection: "<database>.<collection>" }
예제
실패한 리샤딩 작업 정리
다음 예시에서는 sales.orders
컬렉션에서 실패한 리샤딩 작업 의 메타데이터를 정리합니다.
db.adminCommand({ cleanupReshardCollection: "sales.orders" })