Skip to content

Commit

Permalink
Fix condition for IsWriteMajorityRequested logic
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-ilijic committed May 7, 2024
1 parent fe40d71 commit 0feb2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pbm/topo/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func IsWriteMajorityRequested(
return true, errors.Wrap(err, "get replset status")
}

return s.WriteMajorityCount >= w,
return w >= s.WriteMajorityCount,
nil
}

Expand Down

0 comments on commit 0feb2af

Please sign in to comment.