ad_parameter_cache_flush_dict (private)
ad_parameter_cache_flush_dict key parameter_name
Defined in packages/acs-tcl/tcl/defs-procs.tcl
Flush a single value from the nsv cache. This proc is necessary in cases, where a node writes a new parameter value before it has read the old one. Since a plain "nsv_dict unset ad_param $key $parameter_name" raises an exception, when the pair does not exist, and we do not want to allow in cluster requests arbitrary "catch" commands, we allow "ad_parameter_cache_flush_dict" instead. Probably, the best solution is to add support for nsv_dict unset -nocomplain -- ad_param $key $parameter_nam The existing nsv_dict was built after Tcl's "dict unset", which does not have the "-nocomplain" option either. However, an atomic operation would certainly be preferable over an exists/unset pair, which is no acceptable solution.
- Parameters:
- key (required)
- parameter_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: catch {nsv_dict unset ad_param $key $parameter_name}XQL Not present: Generic, PostgreSQL, Oracle