Fix deadlock on the mounts & auth locks (#6560)
* Fix deadlock on the mountsLock * Fix deadlock on authLock too
This commit is contained in:
parent
673dcfe49f
commit
76969aa801
|
@ -2913,6 +2913,7 @@ func (b *SystemBackend) pathInternalUIMountsRead(ctx context.Context, req *logic
|
|||
for _, entry := range b.Core.mounts.Entries {
|
||||
filtered, err := b.Core.checkReplicatedFiltering(ctx, entry, "")
|
||||
if err != nil {
|
||||
b.Core.mountsLock.RUnlock()
|
||||
return nil, err
|
||||
}
|
||||
if filtered {
|
||||
|
@ -2938,6 +2939,7 @@ func (b *SystemBackend) pathInternalUIMountsRead(ctx context.Context, req *logic
|
|||
for _, entry := range b.Core.auth.Entries {
|
||||
filtered, err := b.Core.checkReplicatedFiltering(ctx, entry, credentialRoutePrefix)
|
||||
if err != nil {
|
||||
b.Core.authLock.RUnlock()
|
||||
return nil, err
|
||||
}
|
||||
if filtered {
|
||||
|
|
Loading…
Reference in New Issue