ruby-changes:53032
From: kazu <ko1@a...>
Date: Sat, 20 Oct 2018 22:14:07 +0900 (JST)
Subject: [ruby-changes:53032] kazu:r65246 (trunk): Revert "Revert "Reset primary_server when remove_server"" [ci skip]
kazu 2018-10-20 22:14:00 +0900 (Sat, 20 Oct 2018) New Revision: 65246 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65246 Log: Revert "Revert "Reset primary_server when remove_server"" [ci skip] This reverts commit d2671c96f32e6fbbd39162a2c9042dcaf3bf2d68. previous reverting is commit miss Modified files: trunk/lib/drb/drb.rb Index: lib/drb/drb.rb =================================================================== --- lib/drb/drb.rb (revision 65245) +++ lib/drb/drb.rb (revision 65246) @@ -1866,6 +1866,11 @@ module DRb https://github.com/ruby/ruby/blob/trunk/lib/drb/drb.rb#L1866 # Removes +server+ from the list of registered servers. def remove_server(server) @server.delete(server.uri) + mutex.synchronize do + if @primary_server == server + @primary_server = nil + end + end end module_function :remove_server -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/