[OpenSIPS-Devel] [OpenSIPS/opensips] 5116cc: Fix recalculating Active nodes and weight sums aft...

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Dec 12 12:37:30 EST 2016


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5116cc84360dee3488f2b6f5e0fd6c78379b0a05
      https://github.com/OpenSIPS/opensips/commit/5116cc84360dee3488f2b6f5e0fd6c78379b0a05
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-12-12 (Mon, 12 Dec 2016)

  Changed paths:
    M modules/dispatcher/dispatch.c

  Log Message:
  -----------
  Fix recalculating Active nodes and weight sums after reload

When inheriting the state from in-mem old data set, the state of a node may change, so we need to recalculate the number of active nodes and the running sums (for weights) in the set.

Fixes #972, but we need @hydrosine confirmation on this.

(cherry picked from commit c5c1f40ea54f0908421ece09bdc5e4b70ceba6cb)


  Commit: 3b9c2b9411e6206c2f420cc2f5b188ec0da1a58b
      https://github.com/OpenSIPS/opensips/commit/3b9c2b9411e6206c2f420cc2f5b188ec0da1a58b
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-12-12 (Mon, 12 Dec 2016)

  Changed paths:
    M modules/dispatcher/dispatch.c

  Log Message:
  -----------
  Add some extra tests to prevent any overflows

Related to #c5c1f4

(cherry picked from commit 56c596851319b721287adb9931cd69f257c3c667)


Compare: https://github.com/OpenSIPS/opensips/compare/94bd0ba269aa...3b9c2b9411e6


More information about the Devel mailing list