summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-12-14 12:42:15 -0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-25 21:12:49 +0900
commit56804ddd2bfd37542916c1233cdea85153d69508 (patch)
tree8ba9a2d8734916b01184f86e82fb76e349dd52b8
parent5b8e685877c4b1476b1d9f5394386b83b9099dd3 (diff)
[rubygems/rubygems] Use a mutex around Checksum::Store @store access
Not wrapping to_lock since access to it is single threaded and read-only at the time of writing the lockfile. https://github.com/rubygems/rubygems/commit/3b53aa1b12
-rw-r--r--lib/bundler/checksum.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bundler/checksum.rb b/lib/bundler/checksum.rb
index 60ba93417c..82334fa1e3 100644
--- a/lib/bundler/checksum.rb
+++ b/lib/bundler/checksum.rb
@@ -189,7 +189,6 @@ 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)