Known Issues:

* If you retrieve state _and_ config data using RESTCONF or NETCONF `get`, a severe performance penalty occurs if you have large lists (eg ACLs). Workaround: disable `VALIDATE_STATE_XML` in `include/clixon_custom.h`.
This commit is contained in:
Olof hagsand 2020-02-14 15:16:17 +01:00
parent 76a4d31c4b
commit 5dd3243f66
3 changed files with 17 additions and 3 deletions

View file

@ -66,9 +66,12 @@
#undef XPATH_LIST_OPTIMIZE
/*! Validate user state callback content
* Use may register state callbacks using ca_statedata callback
* Users may register state callbacks using ca_statedata callback
* When this option is set, the XML returned from the callback is validated after merging with the running
* db. If it fails, an internal error is returned to the originating user.
* If the option is not set, the XML returned by the user is not validated.
* Note that enabling this option causes a large performance overhead for large lists, therefore it
* is recommended to enable it during development and debugging but disable it in production, until
* this has been resolved.
*/
#define VALIDATE_STATE_XML