Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpullano committed Apr 8, 2012
1 parent 57b985b commit 7c0c9d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions server/SessionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,15 @@ public static Cookie writeRequest(ServletContext context, String newData, SID si
continue;
if(RpcMessageCall.SessionWrite(ipp, sid, newChangeCount, newData, discardTime)) {
newIppBackup = ipp;
svn = new SVN(newChangeCount, newIppPrimary, newIppBackup);
newSvn = new SVN(newChangeCount, newIppPrimary, newIppBackup);
HashSet<IPP> set = new HashSet<IPP>();
set.add(ippPrimary);
set.add(ippBackup);
set.remove(ippLocal);
set.remove(ipp);
set.remove(IPP.getNullIpp());
RpcMessageCall.SessionDelete(set, sid, newChangeCount);
if(!set.isEmpty())
RpcMessageCall.SessionDelete(set, sid, newChangeCount);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/SimpleDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public static SimpleDB getInstance() {

public static void main(String[] args){
SimpleDB db = SimpleDB.getInstance();
db.deleteDomain(MEMBER_LIST_DOMAIN);
//db.deleteDomain(MEMBER_LIST_DOMAIN);
}

public void run() {
Expand Down

0 comments on commit 7c0c9d6

Please sign in to comment.