ruby-changes:53000
From: kazu <ko1@a...>
Date: Sat, 20 Oct 2018 16:49:38 +0900 (JST)
Subject: [ruby-changes:53000] kazu:r65214 (trunk): Reset primary_server when remove_server
kazu 2018-10-20 16:49:34 +0900 (Sat, 20 Oct 2018) New Revision: 65214 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65214 Log: Reset primary_server when remove_server Modified files: trunk/lib/drb/drb.rb Index: lib/drb/drb.rb =================================================================== --- lib/drb/drb.rb (revision 65213) +++ lib/drb/drb.rb (revision 65214) @@ -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/