[Groonga-commit] droonga/droonga-engine at b34345d [master] Allow to compare LiveNodesList to other class instances

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Dec 12 10:22:21 JST 2014


YUKI Hiroshi	2014-12-12 10:22:21 +0900 (Fri, 12 Dec 2014)

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

  Message:
    Allow to compare LiveNodesList to other class instances

  Modified files:
    lib/droonga/live_nodes_list.rb

  Modified: lib/droonga/live_nodes_list.rb (+2 -1)
===================================================================
--- lib/droonga/live_nodes_list.rb    2014-12-11 18:58:13 +0900 (90112e2)
+++ lib/droonga/live_nodes_list.rb    2014-12-12 10:22:21 +0900 (60258ef)
@@ -32,7 +32,8 @@ module Droonga
     end
 
     def ==(nodes_list)
-      nodes_list.all_nodes == all_nodes and
+      nodes_list.is_a?(self.class) and
+        nodes_list.all_nodes == all_nodes and
         nodes_list.dead_nodes == dead_nodes and
         nodes_list.suspended_nodes == suspended_nodes
     end
-------------- next part --------------
HTML����������������������������...
Download 



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