[Groonga-commit] droonga/droonga-engine at 04e1a2d [master] Just reserve to forward message for dead nodes

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jun 27 15:55:27 JST 2014


YUKI Hiroshi	2014-06-27 15:55:27 +0900 (Fri, 27 Jun 2014)

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

  Message:
    Just reserve to forward message for dead nodes

  Modified files:
    lib/droonga/dispatcher.rb

  Modified: lib/droonga/dispatcher.rb (+3 -1)
===================================================================
--- lib/droonga/dispatcher.rb    2014-06-27 15:55:11 +0900 (69c7c59)
+++ lib/droonga/dispatcher.rb    2014-06-27 15:55:27 +0900 (e787d91)
@@ -162,9 +162,11 @@ module Droonga
       if local?(destination)
         process_internal_message(message)
       else
+        only_reserve = @engine_state.dead_nodes.include?(destination)
         @forwarder.forward(@message.merge("body" => message),
                            "type" => "dispatcher",
-                           "to"   => destination)
+                           "to"   => destination,
+                           "reserve" => only_reserve)
       end
     end
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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