Skip to content

Commit

Permalink
Merge branch 'release-5.0.15' into master-bbdd1b54-5.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Feb 9, 2024
2 parents 92e07ea + 53a8791 commit 5060857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ func checkIfSecondaryLockedAndSync(mongohost string) error {

x := make(map[string]interface{})
args := append([]interface{}{
"config",
"admin",
"--host", mongohost,
"--quiet",
"--eval", "JSON.stringify(db.currentOp())",
"--eval", "rs.secondaryOk(); JSON.stringify(db.runCommand({currentOp:1}))",
}, mongoCreds...)
output, err := sh.Command(MongoCMD, args...).Output()
if err != nil {
Expand Down

0 comments on commit 5060857

Please sign in to comment.