MCPcopy
hub / github.com/etcd-io/etcd / Revision

Struct Revision

server/etcdserver/api/v3compactor/revision.go:32–46  ·  view source on GitHub ↗

Revision compacts the log by purging revisions older than the configured reivison number. Compaction happens every 5 minutes.

Source from the content-addressed store, hash-verified

30// Revision compacts the log by purging revisions older than
31// the configured reivison number. Compaction happens every 5 minutes.
32type Revision struct {
33 lg *zap.Logger
34
35 clock clockwork.Clock
36 retention int64
37
38 rg RevGetter
39 c Compactable
40
41 ctx context.Context
42 cancel context.CancelFunc
43
44 mu sync.Mutex
45 paused bool
46}
47
48// newRevision creates a new instance of Revisonal compactor that purges
49// the log older than retention revisions from the current revision.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected