[SERVER-14055] Add generic support for additional flags to db.copyDatabase wrapper Created: 27/May/14 Updated: 23/Dec/19 Resolved: 23/Dec/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Victor Hooi | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 1 |
| Labels: | community-team, neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
The db.copyDatabase shell command provides a convenient wrapper around the copydb command. However, there is currently no support for setting the slaveOk flag. This prevents you from being able to do a database copy from secondaries in a replica set. At this stage, the only missing flag is slaveOk, however, this doesn't preclude the addition of additional flags into copydb in the future - hence, generic support for optional flags would be very useful. |
| Comments |
| Comment by Spencer Jackson [ 23/Dec/19 ] |
|
The underlying database command was deprecated in v4.0, and removed in v4.2. |