current=root.makeDirectory(global new GlobalString(String.valueOf(mid)));\r
}\r
Random r=new Random();\r
+ System.out.println("Starting FileSystem");\r
char ptr[]=new char[1024];\r
- for(int i=0;i<40000;i++) {\r
+ //for(int i=0;i<40000;i++) {\r
+ for(int i=0;i<15000;i++) {\r
+ System.out.println("i= " + i + "\n");\r
atomic {\r
for(int count=0;count<10;count++) {\r
int value=r.nextInt(100);\r
DistributedHashMap.java \
Directory.java \
DFile.java
-FLAGS= -recovery -recoverystats -transstats -dsm -dsmcaching -debug -optimize -mainclass ${MAINCLASS}
+FLAGS= -recovery -recoverystats -transstats -dsm -dsmcaching -debug -nooptimize -mainclass ${MAINCLASS}
DSMFLAGS=-transstats -dsm -dsmcaching -optimize -mainclass ${MAINCLASS}
default:
../../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC1}
}
else {
tNode->status = TRANS_WAIT;
-// printf("%s -> Waiting!! \ttransID : %u decision : %d status : %d \n",__func__,tNode->transid,tNode->decision,tNode->status);
-// sleep(3);
+ printf("%s -> Waiting!! \ttransID : %u decision : %d status : %d \n",__func__,tNode->transid,tNode->decision,tNode->status);
randomdelay();
}
objstrDelete(t_cache);
t_chashDelete();
#ifdef RECOVERY
- if(deadmid != -1) { /* if deadmid is greater than or equal to 0, then there is dead machine. */
+ if(deadmid != -1) { /* if deadmid is greater than or equal to 0, then there is dead machine. */
notifyLeaderDeadMachine(deadmid);
}
#endif
do {
sdlist = getSocketLists();
-// printf("%s -> I'm currently leader num : %d ping machines\n\n",__func__,epoch_num);
+ printf("%s -> I'm currently leader num : %d ping machines\n\n",__func__,epoch_num);
if((flag = pingMachines(epoch_num,sdlist,&tList)) < 0) break;
pthread_mutex_lock(&translist_mutex);
}while(0);
if(flag < 0) {
-// printf("%s -> higher epoch\n",__func__);
+ printf("%s -> higher epoch\n",__func__);
while(okCommit != TRANS_OK) {
-// printf("%s -> Waiting\n",__func__);
+ //printf("%s -> Waiting\n",__func__);
randomdelay();
}
{
// printf("%s -> REMOVE transID : %u \n",__func__,transid);
- int flag = -1;
+ //int flag = -1;
tlist_node_t* tmp;
tlist_node_t* ptr = transList->head;
tlist_node_t* prev = NULL;
prev->next = ptr->next;
free(ptr);
(transList->size)--;
- flag = 0;
+ //flag = 0;
transList->flag = 1;
return transList;
}