Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 25 Apr 2018 08:13:59 +0000 (10:13 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 25 Apr 2018 08:21:39 +0000 (10:21 +0200)
1  2 
examples/s4u/dht-chord/s4u-dht-chord.cpp
src/s4u/s4u_Storage.cpp
src/surf/instr_routing.cpp
src/surf/sg_platf.cpp
src/surf/storage_n11.cpp

@@@ -64,7 -38,13 +38,13 @@@ int main(int argc, char* argv[]
  
    e.load_platform(options[0]);
  
-   chord_init(); // FIXME: inline me
+   /* Global initialization of the Chord simulation. */
+   nb_keys = 1U << nb_bits;
+   XBT_DEBUG("Sets nb_keys to %d", nb_keys);
+   HostChord::EXTENSION_ID = simgrid::s4u::Host::extension_create<HostChord>();
 -  for (auto const& host : simgrid::s4u::Engine::getInstance()->get_all_hosts())
++  for (auto const& host : simgrid::s4u::Engine::get_instance()->get_all_hosts())
+     host->extension_set(new HostChord(host));
  
    e.register_actor<Node>("node");
    e.load_deployment(options[1]);
@@@ -19,11 -19,9 +19,9 @@@ template class Extendable<simgrid::s4u:
  
  namespace s4u {
  
- void XBT_ATTRIB_DEPRECATED_v322(
-     "simgrid::s4u::getStorageList() is deprecated in favor of Engine::getAllStorages(). Please switch before v3.22")
-     getStorageList(std::map<std::string, Storage*>* whereTo)
+ void getStorageList(std::map<std::string, Storage*>* whereTo)
  {
 -  for (auto const& s : simgrid::s4u::Engine::getInstance()->get_all_storages())
 +  for (auto const& s : simgrid::s4u::Engine::get_instance()->get_all_storages())
      whereTo->insert({s->get_name(), s});
  }
  
Simple merge
Simple merge
@@@ -17,9 -17,9 +17,9 @@@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_
   *************/
  extern std::map<std::string, simgrid::surf::StorageType*> storage_types;
  
static void check_disk_attachment()
+ void check_disk_attachment()
  {
 -  for (auto const& s : simgrid::s4u::Engine::getInstance()->get_all_storages()) {
 +  for (auto const& s : simgrid::s4u::Engine::get_instance()->get_all_storages()) {
      simgrid::kernel::routing::NetPoint* host_elm = sg_netpoint_by_name_or_null(s->getImpl()->getHost().c_str());
      if (not host_elm)
        surf_parse_error(std::string("Unable to attach storage ") + s->get_cname() + ": host " +