Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
let storage use lazy updates, and kill dead code
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 19:25:37 +0000 (21:25 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 2 Oct 2016 19:25:37 +0000 (21:25 +0200)
src/surf/storage_n11.cpp
src/surf/storage_n11.hpp

index 8161a1b..fd4a72f 100644 (file)
@@ -61,12 +61,10 @@ namespace simgrid {
 namespace surf {
 
 StorageN11Model::StorageN11Model() : StorageModel() {
-  XBT_DEBUG("surf_storage_model_init_internal");
-  maxminSystem_ = lmm_system_new(false /*lazy?*/);
+  maxminSystem_ = lmm_system_new(true /* lazy update */);
 }
 
-StorageN11Model::~StorageN11Model(){
-}
+StorageN11Model::~StorageN11Model() = default;
 
 #include "src/surf/xml/platf.hpp" // FIXME: move that back to the parsing area
 Storage *StorageN11Model::createStorage(const char* id, const char* type_id,
index 51c43d0..eab039e 100644 (file)
@@ -49,12 +49,9 @@ public:
   StorageAction *open(const char* mount, const char* path);
   StorageAction *close(surf_file_t fd);
   StorageAction *ls(const char *path);
-  StorageAction *read(surf_file_t fd, sg_size_t size);//FIXME:why we have a useless param  *??
+  StorageAction *read(surf_file_t fd, sg_size_t size); //FIXME:why we have a useless param  *??
   StorageAction *write(surf_file_t fd, sg_size_t size);//FIXME:why we have a useless param  *??
   void rename(const char *src, const char *dest);
-
-  lmm_constraint_t p_constraintWrite;    /* Constraint for maximum write bandwidth*/
-  lmm_constraint_t p_constraintRead;     /* Constraint for maximum write bandwidth*/
 };
 
 /**********