now it is working when only one machine left
authorjihoonl <jihoonl>
Fri, 2 Jul 2010 02:30:30 +0000 (02:30 +0000)
committerjihoonl <jihoonl>
Fri, 2 Jul 2010 02:30:30 +0000 (02:30 +0000)
Robust/src/Runtime/DSTM/interface_recovery/trans.c

index 042e9ffaad7826a57dc1e1bbad4a2f11293d33db..1055fa8fb9a5aa8db1dedea755e71b086649df22 100644 (file)
@@ -1032,6 +1032,12 @@ plistnode_t *createPiles() {
                          int makedirty = 0;
         unsigned int mid;
 
+        if(numLiveHostsInSystem == 1) {
+          pile = pInsert(pile, headeraddr, myIpAddr, c_numelements);
+          curr = curr->next;
+          continue;
+        }
+
         // if the obj is dirty or new
                        if(STATUS(headeraddr) & DIRTY || STATUS(headeraddr) & NEW) {
           // set flag for backup machine