File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -276,14 +276,14 @@ Default: false
276
276
```
277
277
278
278
279
- RejectreadOnly causes the driver to reject read-only connections. This is for a
280
- possible race condition during an automatic failover, where the mysql client
281
- gets connected to a read-only replica after the failover.
279
+ ` rejectreadOnly=true ` causes the driver to reject read-only connections. This
280
+ is for a possible race condition during an automatic failover, where the mysql
281
+ client gets connected to a read-only replica after the failover.
282
282
283
283
Note that this should be a fairly rare case, as an automatic failover normally
284
284
happens when the primary is down, and the race condition shouldn't happen
285
285
unless it comes back up online as soon as the failover is kicked off. On the
286
- other hand, when this happens, an mysql application can get stuck on a
286
+ other hand, when this happens, a MySQL application can get stuck on a
287
287
read-only connection until restarted. It is however fairly easy to reproduce,
288
288
for example, using a manual failover on AWS Aurora's MySQL-compatible cluster.
289
289
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ type Config struct {
53
53
InterpolateParams bool // Interpolate placeholders into query string
54
54
MultiStatements bool // Allow multiple statements in one query
55
55
ParseTime bool // Parse time values to time.Time
56
- RejectReadOnly bool // Reject read-only connections; see README.md
56
+ RejectReadOnly bool // Reject read-only connections
57
57
Strict bool // Return warnings as errors
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments