Skip to content

Commit 22ad4a2

Browse files
committed
Revert "Move pkgState.mutex.RLock() outside else statement so that entry is RLocked in both the creation and reading cases."
This reverts commit be48f9d.
1 parent be48f9d commit 22ad4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: worker/pip-manager/installManager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ func (i *Installer) Install(pkgs []string) error {
7676
// lock. We will also have to release reader locks on eviction of
7777
// handlers/cache entries.
7878
i.mutex.Unlock()
79+
pkgState.mutex.RLock()
7980
}
80-
pkgState.mutex.RLock()
8181
}
8282

8383
return nil

0 commit comments

Comments
 (0)