Skip to content

Commit

Permalink
proxy: fix IsMasterOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
spinlock committed Aug 8, 2017
1 parent 52ff2dc commit 1f9da0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proxy/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (f OpFlag) IsReadOnly() bool {

func (f OpFlag) IsMasterOnly() bool {
const mask = FlagWrite | FlagMayWrite | FlagMasterOnly
return (f & mask) == 0
return (f & mask) != 0
}

type OpInfo struct {
Expand Down

0 comments on commit 1f9da0a

Please sign in to comment.