提交 c42b355c 编写于 作者: A Akira Matsuda

Revert "Ivar += in MRI is thread safe"

This reverts commit dd1aa738.

Since this ivar is updated in a synchronize block just below,
and has to be protected from other threads
Co-authored-by: NRyuta Kamizono <kamipo@gmail.com>
上级 c7698750
......@@ -822,12 +822,8 @@ def checkout_for_exclusive_access(checkout_timeout)
end
def with_new_connections_blocked
if RUBY_ENGINE == "ruby"
synchronize do
@threads_blocking_new_connections += 1
else
synchronize do
@threads_blocking_new_connections += 1
end
end
yield
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册