Skip to content

Commit

Permalink
system-plugin: remove unnecessary sr_copy_config() call
Browse files Browse the repository at this point in the history
  • Loading branch information
zinccyy committed Oct 26, 2022
1 parent c71f69e commit fcb9ba4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcb9ba4

Please sign in to comment.