MCPcopy Create free account
hub / github.com/apecloud/myduckserver / startAllReplication

Function startAllReplication

pgserver/backup_handler.go:161–175  ·  view source on GitHub ↗
(sqlCtx *sql.Context)

Source from the content-addressed store, hash-verified

159}
160
161func 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}

Callers 1

executeBackupMethod · 0.85

Calls 3

CommitAndCloseTxnFunction · 0.92
UpdateSubscriptionsFunction · 0.92

Tested by

no test coverage detected