Skip to content

Commit

Permalink
using a diff domain again
Browse files Browse the repository at this point in the history
  • Loading branch information
akamel001 committed Apr 8, 2012
1 parent 0b32cc8 commit 962c973
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions server/SimpleDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

public final class SimpleDB extends Thread {

public static final String MEMBER_LIST_DOMAIN = "CS5300PROJECT1BSDBMbrList1";
public static final String MEMBER_LIST_DOMAIN = "CS5300PROJECT1BSDBMbrList9000";

private static boolean DEBUG = true;

Expand Down Expand Up @@ -100,13 +100,13 @@ public synchronized void memberRefresh(){
continue;
if(RpcMessageCall.NoOp(ipp))
localMbrList.add(ipp);
// else
// retrySet.add(ipp);
else
retrySet.add(ipp);
}
// for(IPP ipp : retrySet) {
// if(RpcMessageCall.NoOp(ipp))
// localMbrList.add(ipp);
// }
for(IPP ipp : retrySet) {
if(RpcMessageCall.NoOp(ipp))
localMbrList.add(ipp);
}

//Add IPPself to the MbrSet

Expand Down Expand Up @@ -228,7 +228,7 @@ public void run() {
double probOfRefresh = 1.0/localMbrList.size();
double rand = generator.nextDouble();
if(DEBUG) System.out.println("Local member list: " + localMbrList.toString());
//if(rand <= probOfRefresh)
if(rand <= probOfRefresh)
memberRefresh();
} catch (InterruptedException e) {
e.printStackTrace();
Expand Down

0 comments on commit 962c973

Please sign in to comment.