NEW: compare without target tree and use hset to store the compared index

This commit is contained in:
fixminer
2020-08-16 00:29:05 +02:00
parent d0b984e1cf
commit b5b57e9ba8
2 changed files with 24 additions and 14 deletions
@@ -190,14 +190,16 @@ public class CompareTrees {
if (oldShapeTree.equals(newShapeTree)) {
if (oldActionTree.equals(newActionTree)) {
if (oldTargetTree.equals(newTargetTree)) {
// if (oldTargetTree.equals(newTargetTree)) {
// samePairs.add(matchKey);
try (Jedis jedis = outerPool.getResource()) {
//// jedis.del(matchKey);
jedis.select(2);
jedis.set(matchKey, "1");
jedis.hset("compared", matchKey, "1");
// jedis.set(matchKey, "1");
}
}
// }
}
}
return true;
@@ -225,7 +227,8 @@ public class CompareTrees {
if (retval >= 0) {
try (Jedis jedis = outerPool.getResource()) {
jedis.select(3);
jedis.set(matchKey, "1");
jedis.hset("compared", matchKey, "1");
// jedis.set(matchKey, "1");
}
}