[Groonga-commit] droonga/droonga-engine at 7c8b85e [master] Reuse already instantiated value

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Apr 21 12:29:56 JST 2015


YUKI Hiroshi	2015-04-21 12:29:56 +0900 (Tue, 21 Apr 2015)

  New Revision: 7c8b85ed6daa26e264ce169bb5eb9c5dc544acfe
  https://github.com/droonga/droonga-engine/commit/7c8b85ed6daa26e264ce169bb5eb9c5dc544acfe

  Message:
    Reuse already instantiated value

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+3 -2)
===================================================================
--- lib/droonga/serf.rb    2015-04-21 12:26:20 +0900 (ac6d545)
+++ lib/droonga/serf.rb    2015-04-21 12:29:56 +0900 (7abc6cb)
@@ -67,9 +67,10 @@ module Droonga
                         *retry_joins)
       agent.on_ready = lambda do
         set_tag("type", "engine")
-        set_tag("role", role)
         set_tag("cluster_id", cluster_id)
-        NodeRole.my_role = role
+        current_role = role
+        set_tag("role", current_role)
+        NodeRole.my_role = current_role
       end
       agent.start
       logger.trace("run_agent: done")
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index