bug fix
authorbdemsky <bdemsky>
Thu, 12 Feb 2009 04:21:26 +0000 (04:21 +0000)
committerbdemsky <bdemsky>
Thu, 12 Feb 2009 04:21:26 +0000 (04:21 +0000)
Robust/src/ClassLibrary/DistributedHashMap.java

index c6444a0499ebfb485885023802f7dbe46048a3cb..76d16fb4139da705a16d74a8d51318f810914886 100644 (file)
@@ -126,7 +126,7 @@ public class DistributedHashMap {
     DHashEntry ptr=dhe.array[index2];
 
     while(ptr!=null) {
-      if (ptr.hashval!=hashcode&&ptr.key.equals(key)) {
+      if (ptr.hashval==hashcode&&ptr.key.equals(key)) {
        Object oldvalue=ptr.value;
        ptr.value=value;
        return oldvalue;