Skip to content

Commit

Permalink
server config BUGFIX handle delete on conn-type
Browse files Browse the repository at this point in the history
  • Loading branch information
roman authored and michalvasko committed Aug 23, 2024
1 parent f1d2a54 commit 4fbfe57
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/server_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -3620,7 +3620,10 @@ nc_server_config_persistent(const struct lyd_node *node, NC_OPERATION op)

assert(!strcmp(LYD_NAME(node), "persistent"));

(void) op;
/* switch to periodic, don't do anything */
if (op == NC_OP_DELETE) {
return 0;
}

/* LOCK */
if (nc_server_config_get_ch_client_with_lock(node, &ch_client)) {
Expand All @@ -3644,7 +3647,10 @@ nc_server_config_periodic(const struct lyd_node *node, NC_OPERATION op)

assert(!strcmp(LYD_NAME(node), "periodic"));

(void) op;
/* switch to persistent, don't do anything */
if (op == NC_OP_DELETE) {
return 0;
}

/* LOCK */
if (nc_server_config_get_ch_client_with_lock(node, &ch_client)) {
Expand Down

0 comments on commit 4fbfe57

Please sign in to comment.