- break while loop on Edge#allPropsDeleted.

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

Branch: refs/heads/master
Commit: 78c315544bdfe9a90000cbcc90013e7af063d36b
Parents: 189bc41
Author: DO YUNG YOON <[email protected]>
Authored: Wed Nov 30 19:30:41 2016 +0900
Committer: DO YUNG YOON <[email protected]>
Committed: Wed Nov 30 19:30:41 2016 +0900

----------------------------------------------------------------------
 s2core/src/main/scala/org/apache/s2graph/core/Edge.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/78c31554/s2core/src/main/scala/org/apache/s2graph/core/Edge.scala
----------------------------------------------------------------------
diff --git a/s2core/src/main/scala/org/apache/s2graph/core/Edge.scala 
b/s2core/src/main/scala/org/apache/s2graph/core/Edge.scala
index f10b4db..e573861 100644
--- a/s2core/src/main/scala/org/apache/s2graph/core/Edge.scala
+++ b/s2core/src/main/scala/org/apache/s2graph/core/Edge.scala
@@ -655,7 +655,7 @@ object Edge {
 //      propsWithoutLastDeletedAt.forall { case (_, v) => v.ts <= 
lastDeletedAt }
       var ret = true
       val iter = props.entrySet().iterator()
-      while (iter.hasNext) {
+      while (iter.hasNext && ret) {
         val e = iter.next()
         if (e.getValue.ts > lastDeletedAt) ret = false
       }

Reply via email to