From d78a6401c3f2a190d282701ae824ab12b8e41998 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Sat, 15 Feb 2020 14:45:01 +0100 Subject: [PATCH] 4.3.2 CHANGELOG updated VALIDATE_STATE_XML disabled --- CHANGELOG.md | 10 ++++++++-- include/clixon_custom.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 585183ea..d95e61d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,20 @@ # Clixon Changelog -## 4.3.2 (Upcoming) +## 4.3.2 (15 February 2020) +### Major New features +* New "general-purpose" datastore upgrade callback added which i called once on startup, intended for low-level general upgrades and as a complement to module-specific upgrade. + * Called on startup after initial XML parsing, but before module-specific upgrades + * Enabled by definign the `.ca_datastore_upgrade` + * [General-purpose upgrade documentation](https://clixon-docs.readthedocs.io/en/latest/backend.html#general-purpose) + ### API changes on existing features (you may need to change your code) * Session-id CLI functionality delayed: "lazy evaluation" * C-api: Changed `clicon_session_id_get(clicon_handle h, uint32_t *id)` * From a cli perspective this is a revert to 4.1 behaviour, where the cli does not immediately exit on start if the backend is not running, but with the new session-id function ### 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`. +* If you retrieve state _and_ config data using RESTCONF or NETCONF `get`, a performance penalty occurs if you have large lists (eg ACLs). Workaround is: disable `VALIDATE_STATE_XML` in `include/clixon_custom.h` (disabled by default). ### Corrected Bugs * Fixed: If you enabled modstate (CLICON_XMLDB_MODSTATE), changed a revision in a yang spec, and restarted the backend daemon, it exit at start (thanks Matt). diff --git a/include/clixon_custom.h b/include/clixon_custom.h index 02c27d17..0981ec0f 100644 --- a/include/clixon_custom.h +++ b/include/clixon_custom.h @@ -74,4 +74,4 @@ * is recommended to enable it during development and debugging but disable it in production, until * this has been resolved. */ -#define VALIDATE_STATE_XML +#undef VALIDATE_STATE_XML