정의
abortRewriteCollection진행 중인
rewriteCollection작업을 중지합니다.버전 8.3에 추가 되었습니다.
호환성
이 명령은 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
- MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud
참고
This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전
구문
db.adminCommand( { abortRewriteCollection: "<database>.<collection>" } )
명령 필드
이 명령은 다음 필드를 사용합니다.
필드 | 유형 | 필요성 | 설명 |
|---|---|---|---|
| 문자열 | 필수 사항 | 다시 쓰기를 중지할 데이터베이스 및 컬렉션 지정합니다. |
액세스 제어
abortRewriteCollection 명령에는 재작성을 중지하려는 클러스터 또는 데이터베이스 및 컬렉션에 대한 rewriteCollection 권한 조치 필요합니다.
이 권한 조치 다음 역할을 가진 사용자도 사용할 수 있습니다.
예시
컬렉션 다시 쓰기의 다음 예시 살펴보겠습니다.
db.adminCommand( { rewriteCollection: "sales.orders" } )
이 다시 쓰기를 중지하려면 데이터베이스 및 컬렉션 이름을 abortRewriteCollection 명령에 전달합니다.
db.adminCommand( { abortRewriteCollection: "sales.orders" } )