[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:
Related
is related to SERVER-3066 db.copyDatabase doesn't allow seconda... Closed
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.

Generated at Thu Feb 08 03:33:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.