fixed block manager lock which triggered asserts during parallel read/write
@@ -895,9 +895,9 @@ func (bm *Manager) getPackedBlockInternalLocked(ctx context.Context, blockID str
}
packFile := bi.PackFile
- bm.mu.Unlock()
+ bm.unlock()
payload, err := bm.blockCache.getContentBlock(ctx, blockID, packFile, int64(bi.PackOffset), int64(bi.Length))
- bm.mu.Lock()
+ bm.lock()
if err != nil {
return nil, false, fmt.Errorf("unable to read storage block %v", err)
}
