[Groonga-commit] droonga/droonga-engine at 3f2b18b [master] Move codes for live nodes from catalog directory to the top level

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri May 9 12:37:32 JST 2014


YUKI Hiroshi	2014-05-09 12:37:32 +0900 (Fri, 09 May 2014)

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

  Message:
    Move codes for live nodes from catalog directory to the top level

  Modified files:
    lib/droonga/catalog/base.rb
  Renamed files:
    lib/droonga/live_nodes_list.rb
      (from lib/droonga/catalog/live_nodes_list.rb)

  Modified: lib/droonga/catalog/base.rb (+0 -5)
===================================================================
--- lib/droonga/catalog/base.rb    2014-05-09 12:30:55 +0900 (18e812f)
+++ lib/droonga/catalog/base.rb    2014-05-09 12:37:32 +0900 (5cb51ca)
@@ -18,7 +18,6 @@ require "zlib"
 require "time"
 require "droonga/error_messages"
 require "droonga/catalog/errors"
-require "droonga/catalog/live_nodes_list"
 
 module Droonga
   module Catalog
@@ -37,10 +36,6 @@ module Droonga
       def dataset(name)
         datasets[name]
       end
-
-      def live_nodes_list
-        @live_nodes_list ||= LiveNodesList.new(@options[:live_nodes_file])
-      end
     end
   end
 end

  Renamed: lib/droonga/live_nodes_list.rb (+6 -8) 81%
===================================================================
--- lib/droonga/catalog/live_nodes_list.rb    2014-05-09 12:30:55 +0900 (edc014b)
+++ lib/droonga/live_nodes_list.rb    2014-05-09 12:37:32 +0900 (f75239a)
@@ -14,15 +14,13 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 module Droonga
-  module Catalog
-    class LiveNodesList
-      def initialize(list)
-        @list = list
-      end
+  class LiveNodesList
+    def initialize(list)
+      @list = list
+    end
 
-      def live_node?(node)
-        @list.key?(node)
-      end
+    def live_node?(node)
+      @list.key?(node)
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
下載 



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