[OpenSIPS-Devel] [OpenSIPS/opensips] 778f6b: clusterer: use the proper locking type when we mig...

Vlad Pătrașcu noreply at github.com
Wed Jun 22 07:56:34 UTC 2022


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 778f6b2aa8afcb666192b668f3d45b56e201f572
      https://github.com/OpenSIPS/opensips/commit/778f6b2aa8afcb666192b668f3d45b56e201f572
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M modules/clusterer/clusterer.c

  Log Message:
  -----------
  clusterer: use the proper locking type when we might switch for writing

Aquire lock for switchable reading when handling a full topology update,
wich might trigger the insert of a new node in the list and thus using
the lock switch mechanism.

(cherry picked from commit ead6f1fcae3881a15b6ec4e8e6026bdd5d99ecb3)





More information about the Devel mailing list