[Groonga-commit] droonga/droonga-engine at fdd8366 [master] Remove needless "serf_" prefix

Back to archive index

Kouhei Sutou null+****@clear*****
Fri May 23 16:29:27 JST 2014


Kouhei Sutou	2014-05-23 16:29:27 +0900 (Fri, 23 May 2014)

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

  Message:
    Remove needless "serf_" prefix

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+5 -5)
===================================================================
--- lib/droonga/serf.rb    2014-05-23 16:27:39 +0900 (7bc3958)
+++ lib/droonga/serf.rb    2014-05-23 16:29:27 +0900 (e02e28a)
@@ -31,7 +31,7 @@ module Droonga
     def initialize(loop, name)
       @loop = loop
       @name = name
-      @serf_pid = nil
+      @pid = nil
     end
 
     def start
@@ -43,7 +43,7 @@ module Droonga
       detect_other_hosts.each do |other_host|
         retry_joins.push("-retry-join", other_host)
       end
-      @serf_pid = run("agent",
+      @pid = run("agent",
                       "-node", @name,
                       "-bind", extract_host(@name),
                       "-event-handler", "#{$0}-serf-event-handler",
@@ -52,14 +52,14 @@ module Droonga
     end
 
     def running?
-      not @serf_pid.nil?
+      not****@pid*****?
     end
 
     def shutdown
       logger.trace("shutdown: start")
       Process.waitpid(run("leave"))
-      Process.waitpid(@serf_pid)
-      @serf_pid = nil
+      Process.waitpid(@pid)
+      @pid = nil
       logger.trace("shutdown: done")
     end
 
-------------- next part --------------
HTML����������������������������...
下載 



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