[Groonga-commit] droonga/droonga-engine at 8adacfd [master] Simplify

Back to archive index

YUKI Piro Hiroshi null+****@clear*****
Fri Dec 12 00:49:14 JST 2014


YUKI "Piro" Hiroshi	2014-12-12 00:49:14 +0900 (Fri, 12 Dec 2014)

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

  Merged e0f9f34: Merge pull request #30 from piroor/replicas-in-a-branch

  Message:
    Simplify

  Modified files:
    lib/droonga/catalog/slice.rb

  Modified: lib/droonga/catalog/slice.rb (+1 -23)
===================================================================
--- lib/droonga/catalog/slice.rb    2014-12-12 00:46:30 +0900 (267603c)
+++ lib/droonga/catalog/slice.rb    2014-12-12 00:49:14 +0900 (f33b5c1)
@@ -37,34 +37,12 @@ module Droonga
         @volume ||= Catalog::Volume.create(@dataset, @raw["volume"])
       end
 
-      def replicas
-        if volume.is_a?(ReplicasVolume)
-          volume.replicas
-        else
-          nil
-        end
-      end
-
-      def slices
-        if volume.is_a?(SlicesVolume)
-          volume.slices
-        else
-          nil
-        end
-      end
-
       def all_nodes
         @all_nodes ||= volume.all_nodes
       end
 
       def compute_routes(message, live_nodes)
-        if replicas
-          replicas.compute_routes(message, live_nodes)
-        elsif slices
-          slices.compute_routes(message, live_nodes)
-        else
-          [volume.address.to_s]
-        end
+        volume.compute_routes(message, live_nodes)
       end
     end
   end
-------------- next part --------------
HTML����������������������������...
다운로드 



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