[OpenSIPS-Devel] [OpenSIPS/opensips] 34fe05: cfgutils: Fix "lock" operations during MI listing

Liviu Chircu noreply at github.com
Mon Dec 18 10:51:51 UTC 2023


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 34fe0572ef68b366dd96f692b09fa54db3de61b4
      https://github.com/OpenSIPS/opensips/commit/34fe0572ef68b366dd96f692b09fa54db3de61b4
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2023-12-18 (Mon, 18 Dec 2023)

  Changed paths:
    M modules/cfgutils/shvar.c

  Log Message:
  -----------
  cfgutils: Fix "lock" operations during MI listing

* fix missing lock check, causing too many unlocks
* always lock the shv during MI listing, to avoid reading garbage
    (e.g. partial data), as a WRITE is taking place in parallel

(cherry picked from commit 0c9aa6ffff31d40db9604be616b1b27053b53235)





More information about the Devel mailing list