[OpenSIPS-Devel] [OpenSIPS/opensips] 3230fe: clusterer: Always broadcast a packet after shtag a...

Liviu Chircu noreply at github.com
Tue Sep 13 08:40:16 UTC 2022


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3230fe307c6cd5d1711bdbbf05adaa626fa142e4
      https://github.com/OpenSIPS/opensips/commit/3230fe307c6cd5d1711bdbbf05adaa626fa142e4
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-09-13 (Tue, 13 Sep 2022)

  Changed paths:
    M modules/clusterer/sharing_tags.c

  Log Message:
  -----------
  clusterer: Always broadcast a packet after shtag activation

Due to network outages, it is currently possible for both sharing tags
of an Active/Backup pair to end up in ACTIVE state.  This patch makes it
so a "cluster_shtag_set_active" MI command always broadcasts (forces)
the ACTIVE state onto all neighbours, thus fixing the incorrect,
post-outage state of the tags.

Credits to @bogdan-iancu and @rvlad-patrascu for their contributions to
this fix!

(cherry picked from commit 77c24e2122ea6f66f251349e05984cfbdef9166c)
(cherry picked from commit ccfdb699bdb2e43979a780ead5baad31e2120a00)





More information about the Devel mailing list