mirror of
https://github.com/kopia/kopia.git
synced 2026-10-28 00:59:13 -04:00
fixed block manager lock which triggered asserts during parallel read/write
This commit is contained in:
1 parent
173c5613c1
commit
c7d898a674
1 file changed
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user