}
public Entry getCopy(Slot s) {
+ // System.out.println("Commit Rescued: " + this); // TODO remove
return new Commit(s, seqnumtrans, keyValueUpdateSet);
}
for (Iterator<KeyValue> i = keyValueUpdateSet.iterator(); i.hasNext();) {
KeyValue kv2 = i.next();
- if (kv1.getKey() == kv2.getKey()) {
- keyValueUpdateSet.remove(kv2);
+ if (kv1.getKey().equals(kv2.getKey())) {
+ // keyValueUpdateSet.remove(kv2);
+ i.remove();
break;
}
}
}
- if (keyValueUpdateSet.size() == 0)
+ if (keyValueUpdateSet.size() == 0) {
+ // System.out.println("Killed Commit: " + this); // TODO remove
this.setDead();
+ }
}
}
\ No newline at end of file