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

Method DeleteLTXFiles

store_compaction_remote_test.go:219–226  ·  view source on GitHub ↗
(_ context.Context, a []*ltx.FileInfo)

Source from the content-addressed store, hash-verified

217}
218
219func (c *delayedReplicaClient) DeleteLTXFiles(_ context.Context, a []*ltx.FileInfo) error {
220 c.mu.Lock()
221 defer c.mu.Unlock()
222 for _, info := range a {
223 delete(c.files, c.key(info.Level, info.MinTXID, info.MaxTXID))
224 }
225 return nil
226}
227
228func (c *delayedReplicaClient) DeleteAll(context.Context) error {
229 c.mu.Lock()

Callers

nothing calls this directly

Calls 3

keyMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected