Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correct a bug in kademlia
authorpaul bedaride <paul.bedaride@gmail.com>
Tue, 13 Nov 2012 10:58:03 +0000 (11:58 +0100)
committerpaul bedaride <paul.bedaride@gmail.com>
Tue, 13 Nov 2012 10:58:03 +0000 (11:58 +0100)
doc/dev_guide/doxygen/simgrid.doc
examples/msg/kademlia/kademlia.tesh
examples/msg/kademlia/node.h

index 04660f5..adb6cf3 100644 (file)
@@ -7,7 +7,6 @@ We start to put TAGS in simgrid source code for having tutorials to see where is
 \li new tags in xml files
 
 \section simgrid_dev_guide_api How to add a new MSG function?
-
 Search for expression \"TUTORIAL: New API\".
 \verbatim
 user@caraja:~/workspace/simgrid/src$ cg "TUTORIAL: New API"
index b6b693d..db69e3c 100644 (file)
@@ -17,7 +17,7 @@ $ $SG_TEST_EXENV ${bindir:=.}/kademlia ${srcdir:=.}/../msg_platform.xml ${srcdir
 > [  0.000000] (11:node@Tanguay) Hi, I'm going to join the network with id 000003ff
 > [  0.000000] (12:node@Morin) Hi, I'm going to join the network with id 000007ff
 > [  0.000000] (13:node@Ethernet) Hi, I'm going to join the network with id 00000fff
-> [900.000000] ( 0:@) Messages created: 1046
+> [900.000000] ( 0:@) Messages created: 1277
 > [900.000000] ( 0:@) Simulated time: 900
 > [900.000000] ( 1:node@Jacquelin) 8/8 FIND_NODE have succeeded
 > [900.000000] ( 2:node@Boivin) 7/7 FIND_NODE have succeeded
index 274a3d2..2db9a51 100644 (file)
@@ -31,7 +31,7 @@ typedef struct s_node {
   msg_comm_t receive_comm;      //current receiving communication.
   msg_task_t task_received;     //current task being received
 
-  char mailbox[MAILBOX_NAME_SIZE];      //node mailbox
+  char mailbox[MAILBOX_NAME_SIZE+1];      //node mailbox
   unsigned int find_node_success;       //Number of find_node which have succeeded.
   unsigned int find_node_failed;        //Number of find_node which have failed.