Skip to content

Commit

Permalink
[rubygems/rubygems] Use a mutex around Checksum::Store @store access
Browse files Browse the repository at this point in the history
Not wrapping to_lock since access to it is single threaded and
read-only at the time of writing the lockfile.

rubygems/rubygems@3b53aa1b12
  • Loading branch information
martinemde authored and hsbt committed Dec 25, 2023
1 parent 5b8e685 commit 56804dd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/bundler/checksum.rb
Expand Up @@ -189,7 +189,6 @@ def inspect
# that contain the same gem with different checksums.
def replace(spec, checksum)
return unless checksum

lock_name = spec.name_tuple.lock_name
@store_mutex.synchronize do
existing = fetch_checksum(lock_name, checksum.algo)
Expand Down

0 comments on commit 56804dd

Please sign in to comment.