Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Lua] Amended comments in chord.lua
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 15 Oct 2015 14:54:55 +0000 (16:54 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 15 Oct 2015 17:17:19 +0000 (19:17 +0200)
examples/lua/chord/chord.lua

index d769963..523581f 100644 (file)
@@ -217,7 +217,9 @@ function handle_task(task)
     else
       -- FIXME: This is completely wrong here. Fix this;
       --        we need to figure out what to send if we don't know our
-      --        predecessor yet
+      --        predecessor yet (this DOES happen and this means that task.answer 
+      --        is initialised with nil and when task.answer is accessed (not here), it will 
+      --        break in Lua 5.3 (because it is nil).    
       simgrid.critical("Don't know my predecessor yet!")
       my_node.predecessor = remote_get_predecessor(my_node.fingers[1])
       task.answer = my_node.predecessor