Method
DeleteLTXFiles
(_ context.Context, a []*ltx.FileInfo)
Source from the content-addressed store, hash-verified
| 217 | } |
| 218 | |
| 219 | func (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 | |
| 228 | func (c *delayedReplicaClient) DeleteAll(context.Context) error { |
| 229 | c.mu.Lock() |
Callers
nothing calls this directly
Tested by
no test coverage detected