[OpenSIPS-Devel] [OpenSIPS/opensips] a6f368: Fix recalculating Active nodes and weight sums aft...
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Dec 12 12:37:26 EST 2016
Branch: refs/heads/2.2
Home: https://github.com/OpenSIPS/opensips
Commit: a6f368fd6e9d3e56e1ab1bd9dbd6bd05d222648a
https://github.com/OpenSIPS/opensips/commit/a6f368fd6e9d3e56e1ab1bd9dbd6bd05d222648a
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: 17ca72ca1156de94281f33bc873df5d8e9ba9adc
https://github.com/OpenSIPS/opensips/commit/17ca72ca1156de94281f33bc873df5d8e9ba9adc
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/1a01dc80defc...17ca72ca1156
More information about the Devel
mailing list