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

Function UpdateSubscriptionLsn

pgserver/logrepl/subscription.go:126–129  ·  view source on GitHub ↗
(ctx *sql.Context, lsn, name string)

Source from the content-addressed store, hash-verified

124}
125
126func UpdateSubscriptionLsn(ctx *sql.Context, lsn, name string) error {
127 _, tx, release, err := adapter.GetCatalogTxnExecutionSnapshotWithLease(ctx, nil)
128 if err != nil {
129 return err
130 }
131 defer release()
132 return UpdateSubscriptionLsnInTxn(ctx, tx, lsn, name)

Callers 1

commitOngoingTxnMethod · 0.85

Calls 2

ExecCatalogInTxnFunction · 0.92
UpdateStmtMethod · 0.80

Tested by

no test coverage detected