Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Comment out the line deleting a SURF_STORAGE object
authorTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Fri, 8 Mar 2013 11:25:48 +0000 (12:25 +0100)
committerTakahiro Hirofuchi <t.hirofuchi+sg@aist.go.jp>
Fri, 8 Mar 2013 11:25:48 +0000 (12:25 +0100)
A VM does not have a storage object at now.

src/surf/vm_workstation.c

index 571caa1..496754a 100644 (file)
@@ -158,9 +158,11 @@ static void vm_ws_destroy(void *ind_vm_workstation)
    */
   xbt_lib_unset(host_lib, name, SURF_CPU_LEVEL, 0);
   xbt_lib_unset(host_lib, name, ROUTING_HOST_LEVEL, 0);
-  xbt_lib_unset(host_lib, name, SURF_STORAGE_LEVEL, 0);
   xbt_lib_unset(host_lib, name, SURF_WKS_LEVEL, 0);
 
+  /* TODO: comment out when VM stroage is implemented. */
+  // xbt_lib_unset(host_lib, name, SURF_STORAGE_LEVEL, 0);
+
 
   /* Free the cpu_action of the VM. */
   int ret = surf_cpu_model_pm->action_unref(vm_ws->cpu_action);