We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c564646 commit 2743c64Copy full SHA for 2743c64
pkg/backup.go
@@ -658,8 +658,8 @@ func lockConfigServer(configSVRDSN, secondaryHost string) error {
658
"config",
659
"--host", secondaryHost,
660
"--quiet",
661
- "--eval", "rs.secondaryOk(); db.BackupControl.find({ '_id' : 'BackupControlDocument' }).readConcern('majority');",
662
- }, adminCreds...)
+ "--eval", "rs.slaveOk(); db.BackupControl.find({ '_id' : 'BackupControlDocument' }).readConcern('majority');",
+ }, mongoCreds...)
663
664
if err := sh.Command(MongoCMD, args...).UnmarshalJSON(&v); err != nil {
665
return err
0 commit comments