YUKI Hiroshi
null+****@clear*****
Fri May 9 12:12:46 JST 2014
YUKI Hiroshi 2014-05-09 12:12:46 +0900 (Fri, 09 May 2014) New Revision: ef60b8362e58ca8b30b24b36319f595699e7e4d4 https://github.com/droonga/droonga-engine/commit/ef60b8362e58ca8b30b24b36319f595699e7e4d4 Message: Collect all nodes correctly Modified files: lib/droonga/catalog/version1.rb test/unit/catalog/test_version1.rb Modified: lib/droonga/catalog/version1.rb (+1 -1) =================================================================== --- lib/droonga/catalog/version1.rb 2014-05-09 12:09:22 +0900 (712bbd4) +++ lib/droonga/catalog/version1.rb 2014-05-09 12:12:46 +0900 (9836f79) @@ -117,7 +117,7 @@ module Droonga def all_nodes nodes = [] - @datasets.each do |dataset| + @datasets.each do |name, dataset| nodes += dataset.all_nodes end nodes.sort.uniq Modified: test/unit/catalog/test_version1.rb (+1 -1) =================================================================== --- test/unit/catalog/test_version1.rb 2014-05-09 12:09:22 +0900 (64abd63) +++ test/unit/catalog/test_version1.rb 2014-05-09 12:12:46 +0900 (3de237f) @@ -62,7 +62,7 @@ class CatalogVersion1Test < Test::Unit::TestCase end def test_all_nodes - assert_equal(["localhost:23004", "localhost:23003"], + assert_equal(["localhost:23003", "localhost:23004"], @catalog.all_nodes) end -------------- next part -------------- HTML����������������������������... Download