You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

  1. From 96a1b4a969a5f3c9224d786c79e90d15a47094b0 Mon Sep 17 00:00:00 2001
  2. From: Emeric Brun <ebrun@haproxy.com>
  3. Date: Wed, 16 Dec 2015 15:16:46 +0100
  4. Subject: [PATCH 11/13] BUG/MEDIUM: peers: table entries learned from a remote
  5. are pushed to others after a random delay.
  6. New sticktable entries learned from a remote peer can be pushed to others after
  7. a random delay because they are not inserted at the right position in the updates
  8. tree.
  9. (cherry picked from commit 234fc3c31e751f8191b9b78fa5fd16663c2627fe)
  10. (cherry picked from commit 8b1a697362977b8392caca3efaf97a5a8a8c782b)
  11. ---
  12. src/peers.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/src/peers.c b/src/peers.c
  15. index 0564d3d..92b4df0 100644
  16. --- a/src/peers.c
  17. +++ b/src/peers.c
  18. @@ -720,7 +720,7 @@ switchstate:
  19. ts = stktable_store(ps->table->table, newts, 0);
  20. newts = NULL; /* don't reuse it */
  21. - ts->upd.key= (++ps->table->table->update)+(2^31);
  22. + ts->upd.key= (++ps->table->table->update)+(2147483648U);
  23. eb = eb32_insert(&ps->table->table->updates, &ts->upd);
  24. if (eb != &ts->upd) {
  25. eb32_delete(eb);
  26. --
  27. 2.4.10