mirror of
https://github.com/kopia/kopia.git
synced 2026-03-27 18:42:26 -04:00
manifest: added missing mutex on Delete()
This commit is contained in:
@@ -267,6 +267,9 @@ func (m *Manager) Delete(ctx context.Context, id ID) error {
|
||||
return err
|
||||
}
|
||||
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
|
||||
if m.pendingEntries[id] == nil && m.committedEntries[id] == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user