[rubygems/rubygems] Let the guards have some space to breathe

https://github.com/rubygems/rubygems/commit/73f1609715
This commit is contained in:
Martin Emde 2023-12-15 10:30:14 -08:00 committed by Hiroshi SHIBATA
parent 56804ddd2b
commit df11b3daf8

View File

@ -189,6 +189,7 @@ module Bundler
# 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)