Repository: incubator-pirk
Updated Branches:
  refs/heads/master 236c23fb5 -> f6e0b4251


[Bug fix] Reset loop index correctly on hash collision -- closes 
apache/incubator-pirk#77


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

Branch: refs/heads/master
Commit: f6e0b42515aca7c97eada22cab74abddb486f586
Parents: 236c23f
Author: tellison <[email protected]>
Authored: Tue Aug 23 10:28:55 2016 -0400
Committer: eawilliams <[email protected]>
Committed: Tue Aug 23 10:28:55 2016 -0400

----------------------------------------------------------------------
 .../org/apache/pirk/querier/wideskies/encrypt/EncryptQuery.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/f6e0b425/src/main/java/org/apache/pirk/querier/wideskies/encrypt/EncryptQuery.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/pirk/querier/wideskies/encrypt/EncryptQuery.java 
b/src/main/java/org/apache/pirk/querier/wideskies/encrypt/EncryptQuery.java
index 49958e4..5ba8431 100644
--- a/src/main/java/org/apache/pirk/querier/wideskies/encrypt/EncryptQuery.java
+++ b/src/main/java/org/apache/pirk/querier/wideskies/encrypt/EncryptQuery.java
@@ -189,7 +189,7 @@ public class EncryptQuery
         selectorQueryVecMapping.clear();
         hashKey = queryInfo.getHashKey() + ++keyCounter;
         logger.debug("index = " + index + "selector = " + selector + " hash 
collision = " + hash + " new key = " + hashKey);
-        index = 0;
+        index = -1;
       }
     }
     return selectorQueryVecMapping;

Reply via email to