MCPcopy
hub / github.com/benbjohnson/litestream / SnapshotLevel

Method SnapshotLevel

store.go:531–536  ·  view source on GitHub ↗

SnapshotLevel returns a pseudo compaction level based on snapshot settings.

()

Source from the content-addressed store, hash-verified

529
530// SnapshotLevel returns a pseudo compaction level based on snapshot settings.
531func (s *Store) SnapshotLevel() *CompactionLevel {
532 return &CompactionLevel{
533 Level: SnapshotLevel,
534 Interval: s.SnapshotInterval,
535 }
536}
537
538func (s *Store) monitorCompactionLevel(ctx context.Context, lvl *CompactionLevel) {
539 s.Logger.Info("starting compaction monitor", "level", lvl.Level, "interval", lvl.Interval)

Callers 2

OpenMethod · 0.95
TestStore_CompactDBFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestStore_CompactDBFunction · 0.76