manifest: added missing mutex on Delete()

This commit is contained in:
Jarek Kowalski
2020-03-05 16:33:17 -08:00
parent fb181257bf
commit 0dd109c208

View File

@@ -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
}