(sqlCtx *sql.Context)
| 159 | } |
| 160 | |
| 161 | func startAllReplication(sqlCtx *sql.Context) error { |
| 162 | if err := logrepl.UpdateAllSubscriptionStatus(sqlCtx, true); err != nil { |
| 163 | return err |
| 164 | } |
| 165 | |
| 166 | if err := adapter.CommitAndCloseTxn(sqlCtx); err != nil { |
| 167 | return err |
| 168 | } |
| 169 | |
| 170 | if err := logrepl.UpdateSubscriptions(sqlCtx); err != nil { |
| 171 | return fmt.Errorf("failed to update subscriptions: %w", err) |
| 172 | } |
| 173 | |
| 174 | return nil |
| 175 | } |
no test coverage detected