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

Function doCheckpoint

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

Source from the content-addressed store, hash-verified

131}
132
133func 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
145func stopAllReplication(sqlCtx *sql.Context) error {
146 if err := logrepl.UpdateAllSubscriptionStatus(sqlCtx, false); err != nil {

Callers 1

executeBackupMethod · 0.85

Calls 2

ExecCatalogInTxnFunction · 0.92
CommitAndCloseTxnFunction · 0.92

Tested by

no test coverage detected