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

Method SetL0Retention

store.go:466–473  ·  view source on GitHub ↗

SetL0Retention updates the retention window for L0 files and propagates it to all managed databases.

(d time.Duration)

Source from the content-addressed store, hash-verified

464// SetL0Retention updates the retention window for L0 files and propagates it to
465// all managed databases.
466func (s *Store) SetL0Retention(d time.Duration) {
467 s.mu.Lock()
468 defer s.mu.Unlock()
469 s.L0Retention = d
470 for _, db := range s.dbs {
471 db.L0Retention = d
472 }
473}
474
475// SetDone sets the done channel used for interrupt handling during shutdown
476// and propagates it to all managed databases.

Callers 1

RunMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected