[sr-dev] git:master:6dc9ee17: core: pv - new parameters to control the size of pv cache

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 21 11:06:43 CET 2017


Module: kamailio
Branch: master
Commit: 6dc9ee1701019c8db994710c11f7e05447cbae92
URL: https://github.com/kamailio/kamailio/commit/6dc9ee1701019c8db994710c11f7e05447cbae92

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-11-21T11:02:38+01:00

core: pv - new parameters to control the size of pv cache

- pv_cache_limit - the limit how many pv declarations in the cache
  after which an action is taken. Default value is 2048
- pv_cache_action - specify what action to be done when the size
  of pv cache is exceeded. If 0, print an warning log message when
  the limit is exceeded. If 1, warning log messages is printed and
  the cache systems tries to drop a $sht(...) declaration. Default is 0

This tries to cope better with the situation of declaring too many
variables when using kemi scripts

---

Modified: src/core/cfg.lex
Modified: src/core/cfg.y
Modified: src/core/cfg_core.c
Modified: src/core/cfg_core.h
Modified: src/core/pvapi.c

---

Diff:  https://github.com/kamailio/kamailio/commit/6dc9ee1701019c8db994710c11f7e05447cbae92.diff
Patch: https://github.com/kamailio/kamailio/commit/6dc9ee1701019c8db994710c11f7e05447cbae92.patch




More information about the sr-dev mailing list