[Groonga-commit] droonga/droonga-engine at b48dc78 [master] Use symbol for status name

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jul 23 16:49:18 JST 2014


YUKI Hiroshi	2014-07-23 16:49:18 +0900 (Wed, 23 Jul 2014)

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

  Message:
    Use symbol for status name

  Modified files:
    lib/droonga/command/serf_event_handler.rb

  Modified: lib/droonga/command/serf_event_handler.rb (+5 -5)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-07-23 16:33:38 +0900 (747f76f)
+++ lib/droonga/command/serf_event_handler.rb    2014-07-23 16:49:18 +0900 (1ba88c2)
@@ -117,7 +117,7 @@ module Droonga
       end
 
       def report_status
-        puts status(@payload["key"])
+        @response["value"] = status(@payload["key"].to_sym)
       end
 
       def join
@@ -166,13 +166,13 @@ module Droonga
           end
           sleep(1) # wait for restart
 
-          save_status("absorbing", true)
+          save_status(:absorbing, true)
           DataAbsorber.absorb(:dataset          => dataset_name,
                               :source_host      => source_host,
                               :destination_host => host,
                               :port             => port,
                               :tag              => tag)
-          delete_status("absorbing")
+          delete_status(:absorbing)
           sleep(1)
         end
 
@@ -317,13 +317,13 @@ module Droonga
         log("port    = #{port}")
         log("tag     = #{tag}")
 
-        save_status("absorbing", true)
+        save_status(:absorbing, true)
         DataAbsorber.absorb(:dataset          => dataset_name,
                             :source_host      => source,
                             :destination_host => host,
                             :port             => port,
                             :tag              => tag)
-        save_delete("absorbing")
+        save_delete(:absorbing)
       end
 
       def live_nodes
-------------- next part --------------
HTML����������������������������...
Download 



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