We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d60d519 + d80d4c4 commit de10275Copy full SHA for de10275
1 file changed
go/vt/etcdtopo/client.go
@@ -9,7 +9,12 @@ import (
9
)
10
11
func newEtcdClient(machines []string) Client {
12
- return etcd.NewClient(machines)
+ c := etcd.NewClient(machines)
13
+ // Vitess requires strong consistency mode for etcd.
14
+ if err := c.SetConsistency(etcd.STRONG_CONSISTENCY); err != nil {
15
+ panic("failed to set consistency on etcd client: " + err.Error())
16
+ }
17
+ return c
18
}
19
20
// Client contains the parts of etcd.Client that are needed.
0 commit comments