CodisLabs / CodisLabs/codis

发现了一处可能是代码bug

Open
#1,728 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
13.2k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

```go
func (ctx *context) toReplicaGroups(gid int, p *models.Proxy) [][]string {
g := ctx.group[gid]
switch {
case g == nil:
return nil
case g.Promoting.State != models.ActionNothing:
return nil
case len(g.Servers) <= 1:
return nil
}
```

这里的g.Promoting.State != models.ActionNothing: 会导致停写状态是,主得到的读拓扑是空的,会导致所以的读流量都到主上,这里是出于什么考虑写的呢,有特殊用意吗

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.