bug fix.

Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/9132f748
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/9132f748
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/9132f748

Branch: refs/heads/master
Commit: 9132f7480022f653013006d0451e5cef01760ecb
Parents: f6b0740
Author: DO YUNG YOON <[email protected]>
Authored: Wed May 9 23:46:54 2018 +0900
Committer: DO YUNG YOON <[email protected]>
Committed: Wed May 9 23:46:54 2018 +0900

----------------------------------------------------------------------
 s2core/src/main/scala/org/apache/s2graph/core/S2GraphLike.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/9132f748/s2core/src/main/scala/org/apache/s2graph/core/S2GraphLike.scala
----------------------------------------------------------------------
diff --git a/s2core/src/main/scala/org/apache/s2graph/core/S2GraphLike.scala 
b/s2core/src/main/scala/org/apache/s2graph/core/S2GraphLike.scala
index 99423d6..fb229ec 100644
--- a/s2core/src/main/scala/org/apache/s2graph/core/S2GraphLike.scala
+++ b/s2core/src/main/scala/org/apache/s2graph/core/S2GraphLike.scala
@@ -209,7 +209,7 @@ trait S2GraphLike extends Graph {
 
     if (ids.isEmpty) {
       //TODO: default storage need to be fixed.
-      val futures = getAllVertexFetchers.map { vertexFetcher =>
+      val futures = (defaultStorage.vertexFetcher +: getAllVertexFetchers).map 
{ vertexFetcher =>
         vertexFetcher.fetchVerticesAll()
       }
 
@@ -240,7 +240,7 @@ trait S2GraphLike extends Graph {
   def edges(edgeIds: AnyRef*): util.Iterator[structure.Edge] = {
     if (edgeIds.isEmpty) {
       // FIXME
-      val futures = getAllEdgeFetchers().map { edgeFetcher =>
+      val futures = (defaultStorage.edgeFetcher +: getAllEdgeFetchers()).map { 
edgeFetcher =>
         edgeFetcher.fetchEdgesAll()
       }
 

Reply via email to