MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / rollback

Method rollback

base/dcp_client.go:491–496  ·  view source on GitHub ↗
(ctx context.Context, vbID uint16, seqNo gocbcore.SeqNo)

Source from the content-addressed store, hash-verified

489}
490
491func (dc *DCPClient) rollback(ctx context.Context, vbID uint16, seqNo gocbcore.SeqNo) {
492 if dc.dbStats != nil {
493 dc.dbStats.Add("dcp_rollback_count", 1)
494 }
495 dc.metadata.Rollback(ctx, vbID, seqNo)
496}
497
498// openStreamRequest issues the OpenStream request, but doesn't perform any error handling. Callers
499// should generally use openStream() for error and retry handling

Callers 1

openStreamMethod · 0.95

Calls 2

RollbackMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected