fix the bug in get-based persistent, updating the destIndex
authorYanhua Sun <sun51@illinois.edu>
Tue, 29 Jan 2013 06:04:12 +0000 (00:04 -0600)
committerYanhua Sun <sun51@illinois.edu>
Tue, 29 Jan 2013 06:04:12 +0000 (00:04 -0600)
src/arch/gemini_gni/machine-persistent.c

index 6dac4788fc94218f83841954f60e0b457b5e4474..9be610ff789248536baf5780520e5d1ee6e0b842 100644 (file)
@@ -29,6 +29,7 @@ void LrtsSendPersistentMsg(PersistentHandle h, int destNode, int size, void *msg
     
     CmiAssert(CmiNodeOf(slot->destPE) == destNode);
     if (slot->destBuf[destIndex].destAddress) {
+        slot->addrIndex = (destIndex+1)%PERSIST_BUFFERS_NUM;
 #if  DELTA_COMPRESS
         if(slot->compressFlag)
             size = CompressPersistentMsg(h, size, msg);