From fcb9ba4d4fe20db0d7b15040268dd61495e91e05 Mon Sep 17 00:00:00 2001 From: Mateo Cindric Date: Wed, 26 Oct 2022 11:12:31 +0000 Subject: [PATCH] system-plugin: remove unnecessary sr_copy_config() call --- src/plugin.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index 095c2b7..420b754 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -206,13 +206,6 @@ int sr_plugin_init_cb(sr_session_ctx_t *running_session, void **private_data) SRPLG_LOG_ERR(PLUGIN_NAME, "Error applying initial data from startup datastore to the system... exiting"); goto error_out; } - - // copy contents of the startup session to the current running session - error = sr_copy_config(running_session, BASE_YANG_MODULE, SR_DS_STARTUP, 0); - if (error) { - SRPLG_LOG_ERR(PLUGIN_NAME, "sr_copy_config() error (%d): %s", error, sr_strerror(error)); - goto error_out; - } } // subscribe every module change