[Groonga-commit] groonga/fluent-plugin-droonga at 8c1f3b6 [master] Don't edit the 'via' property when the destination is assigned.

Back to archive index

Daijiro MORI null+****@clear*****
Thu Apr 18 18:11:46 JST 2013


Daijiro MORI	2013-04-18 18:11:46 +0900 (Thu, 18 Apr 2013)

  New Revision: 8c1f3b6b75ad3068ed9bc8f68b94b079aebd3043
  https://github.com/groonga/fluent-plugin-droonga/commit/8c1f3b6b75ad3068ed9bc8f68b94b079aebd3043

  Message:
    Don't edit the 'via' property when the destination is assigned.

  Modified files:
    lib/droonga/worker.rb

  Modified: lib/droonga/worker.rb (+5 -2)
===================================================================
--- lib/droonga/worker.rb    2013-04-17 23:35:33 +0900 (11147c3)
+++ lib/droonga/worker.rb    2013-04-18 18:11:46 +0900 (aeaa69e)
@@ -75,8 +75,11 @@ module Droonga
     end
 
     def post(body, destination=nil)
-      route = envelope[:via].pop
-      destination = route unless destination
+      route = nil
+      unless destination
+        route = envelope[:via].pop
+        destination = route
+      end
       output = get_output(destination)
       return unless output
       if destination
-------------- next part --------------
HTML����������������������������...
Download 



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