Skip to content

Commit 0e83032

Browse files
authored
Replace rs.secondaryOk() with rs.slaveOk() (#1372)
Signed-off-by: hmsayem <hmsayem@appscode.com>
1 parent 2a31584 commit 0e83032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ func lockConfigServer(configSVRDSN, secondaryHost string) error {
647647
"config",
648648
"--host", secondaryHost,
649649
"--quiet",
650-
"--eval", "rs.secondaryOk(); db.BackupControl.find({ '_id' : 'BackupControlDocument' }).readConcern('majority');",
650+
"--eval", "rs.slaveOk(); db.BackupControl.find({ '_id' : 'BackupControlDocument' }).readConcern('majority');",
651651
}, adminCreds...)
652652

653653
if err := sh.Command(MongoCMD, args...).UnmarshalJSON(&v); err != nil {

0 commit comments

Comments
 (0)