[Groonga-commit] droonga/droonga-engine at 1f2a76d [master] Ensure shutdown sub command

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jun 26 15:44:21 JST 2014


Kouhei Sutou	2014-06-26 15:44:21 +0900 (Thu, 26 Jun 2014)

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

  Message:
    Ensure shutdown sub command
    
    It causes a resource leak.

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+2 -2)
===================================================================
--- lib/droonga/serf.rb    2014-06-26 15:29:27 +0900 (31b6e87)
+++ lib/droonga/serf.rb    2014-06-26 15:44:21 +0900 (f02380d)
@@ -69,12 +69,12 @@ module Droonga
 
     def set_tag(key, value)
       logger.trace("set_tag (#{key} = #{value})")
-      run("tags", "-set", "#{key}=#{value}")
+      run("tags", "-set", "#{key}=#{value}").shutdown
     end
 
     def delete_tag(key)
       logger.trace("delete_tag (#{key})")
-      run("tags", "-delete", key)
+      run("tags", "-delete", key).shutdown
     end
 
     private
-------------- next part --------------
HTML����������������������������...
Télécharger 



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