From: Martin Quinson Date: Sun, 2 Oct 2016 19:25:37 +0000 (+0200) Subject: let storage use lazy updates, and kill dead code X-Git-Tag: v3_14~366 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3ac47257d5835d1c289b450d79ae46b5747fe79a?ds=sidebyside let storage use lazy updates, and kill dead code --- diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 8161a1b1a7..fd4a72fc6b 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -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, diff --git a/src/surf/storage_n11.hpp b/src/surf/storage_n11.hpp index 51c43d0e03..eab039ec13 100644 --- a/src/surf/storage_n11.hpp +++ b/src/surf/storage_n11.hpp @@ -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*/ }; /**********