System-only config: revert clearing of candidate after commit
Add compile-time option SYSTEM_ONLY_CONFIG_CANDIDATE_CLEAR to document
This commit is contained in:
parent
030dd89b83
commit
4c57edfc57
2 changed files with 12 additions and 0 deletions
|
|
@ -749,7 +749,9 @@ candidate_commit(clixon_handle h,
|
|||
/* Remove system-only-config data from destination cache */
|
||||
if (clicon_option_bool(h, "CLICON_XMLDB_SYSTEM_ONLY_CONFIG")){
|
||||
xmldb_clear(h, "running");
|
||||
#ifdef SYSTEM_ONLY_CONFIG_CANDIDATE_CLEAR
|
||||
xmldb_clear(h, db);
|
||||
#endif
|
||||
}
|
||||
xmldb_modified_set(h, db, 0); /* reset dirty bit */
|
||||
/* Here pointers to old (source) tree are obsolete */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue