(sqlCtx *sql.Context)
| 131 | } |
| 132 | |
| 133 | func doCheckpoint(sqlCtx *sql.Context) error { |
| 134 | if _, err := adapter.ExecCatalogInTxn(sqlCtx, "CHECKPOINT"); err != nil { |
| 135 | return err |
| 136 | } |
| 137 | |
| 138 | if err := adapter.CommitAndCloseTxn(sqlCtx); err != nil { |
| 139 | return err |
| 140 | } |
| 141 | |
| 142 | return nil |
| 143 | } |
| 144 | |
| 145 | func stopAllReplication(sqlCtx *sql.Context) error { |
| 146 | if err := logrepl.UpdateAllSubscriptionStatus(sqlCtx, false); err != nil { |
no test coverage detected