[Groonga-commit] droonga/fluent-plugin-droonga at 1e5b5a1 [master] Simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Mar 17 22:45:15 JST 2014


Kouhei Sutou	2014-03-17 22:45:15 +0900 (Mon, 17 Mar 2014)

  New Revision: 1e5b5a1f4dfd412e3381a78777be078eff9ad285
  https://github.com/droonga/fluent-plugin-droonga/commit/1e5b5a1f4dfd412e3381a78777be078eff9ad285

  Message:
    Simplify

  Modified files:
    lib/droonga/distributed_command_planner.rb

  Modified: lib/droonga/distributed_command_planner.rb (+3 -3)
===================================================================
--- lib/droonga/distributed_command_planner.rb    2014-03-17 22:44:27 +0900 (b3850a0)
+++ lib/droonga/distributed_command_planner.rb    2014-03-17 22:45:15 +0900 (eed18e3)
@@ -100,8 +100,8 @@ module Droonga
         unified = unified_reducers[type]
         if unified
           unified["body"] = unified["body"].merge(reducer["body"])
-          unified["inputs"] = unified["inputs"] + reducer["inputs"]
-          unified["outputs"] = unified["outputs"] + reducer["outputs"]
+          unified["inputs"] += reducer["inputs"]
+          unified["outputs"] += reducer["outputs"]
         else
           unified_reducers[type] = reducer.dup
         end
@@ -116,7 +116,7 @@ module Droonga
         unified = unified_gatherers[type]
         if unified
           unified["body"] = unified["body"].merge(gatherer["body"])
-          unified["inputs"] = unified["inputs"] + gatherer["inputs"]
+          unified["inputs"] += gatherer["inputs"]
         else
           unified_gatherers[type] = gatherer.dup
         end
-------------- next part --------------
HTML����������������������������...
Download 



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