Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
VM migration: don't send with timeout because the receiver receive without timeout
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Mar 2017 10:34:29 +0000 (11:34 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Mar 2017 10:51:33 +0000 (11:51 +0100)
src/msg/msg_vm.cpp

index ebcaa9c..c08b2c7 100644 (file)
@@ -774,9 +774,7 @@ void MSG_vm_migrate(msg_vm_t vm, msg_host_t dst_pm)
   /* wait until the migration have finished or on error has occurred */
   XBT_DEBUG("wait for reception of the final ACK (i.e. migration has been correctly performed");
   msg_task_t task = nullptr;
-  msg_error_t ret = MSG_TIMEOUT;
-  while (ret == MSG_TIMEOUT && dst_pm->isOn()) // The rx will tell me when he gots the VM
-    ret = MSG_task_receive_with_timeout(&task, ms->mbox_ctl, 4);
+  msg_error_t ret = MSG_task_receive(&task, ms->mbox_ctl);
 
   pimpl->isMigrating = false;