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

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


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5cd47cb2113d2334d78610a4c7c52ced77a9723f
      https://github.com/OpenSIPS/opensips/commit/5cd47cb2113d2334d78610a4c7c52ced77a9723f
  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: 960bcf1ebaa4d79adc09b74a095301d31604e9e3
      https://github.com/OpenSIPS/opensips/commit/960bcf1ebaa4d79adc09b74a095301d31604e9e3
  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/743662282953...960bcf1ebaa4


More information about the Devel mailing list