]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Make sure ospf_distribute_list_update_timer() eventually runs.
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Wed, 14 Apr 2010 09:05:28 +0000 (11:05 +0200)
committerGreg Troxel <gdt@ir.bbn.com>
Sun, 18 Apr 2010 18:53:28 +0000 (14:53 -0400)
* ospf_zebra.c: (ospf_distribute_list_update_timer)
   If there are updates to the distribute list every 5 second or less,
   ospf_distribute_list_update_timer() will never run as the timer gets
   rearmed for each update. This fixes it by never rearming an active
   distribute list timer.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
ospfd/ospf_zebra.c

index 90bee21513a55c38928c279639f80412663f9bae..462f67c819bf2afc479e2e2801d229972785224b 100644 (file)
@@ -972,9 +972,9 @@ ospf_distribute_list_update (struct ospf *ospf, int type)
   if (!(rt = EXTERNAL_INFO (type)))
     return;
 
-  /* If exists previously invoked thread, then cancel it. */
+  /* If exists previously invoked thread, then let it continue. */
   if (ospf->t_distribute_update)
-    OSPF_TIMER_OFF (ospf->t_distribute_update);
+    return;
 
   /* Set timer. */
   ospf->t_distribute_update =