[Groonga-commit] droonga/fluent-plugin-droonga at d1a27d1 [master] Notify once even if multiple targets are matched

Back to archive index

Yoji Shidara null+****@clear*****
Fri Dec 13 17:32:26 JST 2013


Yoji Shidara	2013-12-13 17:32:26 +0900 (Fri, 13 Dec 2013)

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

  Message:
    Notify once even if multiple targets are matched

  Modified files:
    lib/droonga/watcher.rb

  Modified: lib/droonga/watcher.rb (+1 -0)
===================================================================
--- lib/droonga/watcher.rb    2013-12-13 11:03:14 +0900 (9914500)
+++ lib/droonga/watcher.rb    2013-12-13 17:32:26 +0900 (5720274)
@@ -99,6 +99,7 @@ module Droonga
       targets.each do |key, target|
         scan_body(hits, target)
       end
+      hits.uniq! # hits may be duplicated if multiple targets are matched
 
       publish(hits, request, &block)
     end
-------------- next part --------------
HTML����������������������������...
Télécharger 



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