Commit 73ced31
Flushing engine logs when switching from primary to secondary
Summary:
We need to make sure that we flush the engine logs (aka sync the engines)
before we switch from binlog to apply log (i.e. switch from primary to
secondary) to recover correctly in host restart case. Otherwise if host
restarts after apply log has been created and the engine goes back in
time on recovery, we'll use the apply log for recovery and assume that
engine is caught up.
Differential Revision: D503851701 parent ff9776d commit 73ced31
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12372 | 12372 | | |
12373 | 12373 | | |
12374 | 12374 | | |
| 12375 | + | |
| 12376 | + | |
| 12377 | + | |
| 12378 | + | |
12375 | 12379 | | |
12376 | 12380 | | |
12377 | 12381 | | |
| |||
12456 | 12460 | | |
12457 | 12461 | | |
12458 | 12462 | | |
12459 | | - | |
| 12463 | + | |
| 12464 | + | |
| 12465 | + | |
12460 | 12466 | | |
12461 | 12467 | | |
12462 | 12468 | | |
| |||
0 commit comments