Skip to content

Commit d384616

Browse files
author
Unnikrishnan G
committed
Set ReadOnly = true when RouteRoundRobinReplicas is true
1 parent d177881 commit d384616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osscluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (opt *ClusterOptions) init() {
101101
opt.MaxRedirects = 3
102102
}
103103

104-
if opt.RouteByLatency || opt.RouteRandomly {
104+
if opt.RouteByLatency || opt.RouteRandomly || opt.RouteRoundRobinReplicas {
105105
opt.ReadOnly = true
106106
}
107107

0 commit comments

Comments
 (0)