Merge pull request #8188 from dmcgowan/fix-streaming-gc-deadlock

Fix streaming manager deadlock on collection
This commit is contained in:
Akihiro Suda
2023-03-02 10:25:05 +09:00
committed by GitHub
2 changed files with 16 additions and 5 deletions

View File

@@ -359,6 +359,7 @@ func (m *DB) GarbageCollect(ctx context.Context) (gc.Stats, error) {
marked, err := m.getMarked(ctx, c) // Pass in gc context
if err != nil {
m.wlock.Unlock()
c.cancel(ctx)
return nil, err
}