]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
sysrepo: update of libsysrepo dependency to 1.4
authorVasek Sraier <git@vakabus.cz>
Wed, 11 Mar 2020 14:00:59 +0000 (15:00 +0100)
committerAleš <ales.mrazek@nic.cz>
Mon, 20 Jul 2020 14:54:40 +0000 (16:54 +0200)
modules/sysrepo-lua/cbindings/sysrepo_clib.c
modules/sysrepo/sysrepo.c

index 1f9141a685e62c26ab6724aae6c8e77f7a138f77..2e9881a03325761a9290cc39541537025477bf1b 100644 (file)
@@ -174,10 +174,6 @@ int sysrepo_init(apply_conf_f apply_conf_callback, read_conf_f read_conf_callbac
        if (sr_err != SR_ERR_OK)
                goto cleanup;
 
-       sr_err = sr_connection_recover(sr_connection);
-       if (sr_err != SR_ERR_OK)
-               goto cleanup;
-
        sr_err = sr_session_start(sr_connection, SR_DS_RUNNING, &sr_session);
        if (sr_err != SR_ERR_OK)
                goto cleanup;
index 60438f42051cf95a3c15d2f01e6a7d06b31806e5..472182b379b86e3e954ee7aa797029aca53c2e5d 100644 (file)
@@ -106,11 +106,6 @@ int sysrepo_init(struct kr_module *module)
        if (ret != SR_ERR_OK)
                goto cleanup;
 
-       /* Try to recover (clean up) any stale connections of clients that no longer exist */
-       ret = sr_connection_recover(sr_connection);
-       if (ret != SR_ERR_OK)
-               goto cleanup;
-
        /* start a new session on RUNNING datastore */
        ret = sr_session_start(sr_connection, SR_DS_RUNNING, &sr_session);
        if (ret != SR_ERR_OK)
@@ -145,4 +140,4 @@ int sysrepo_deinit(struct kr_module *module)
        return kr_ok();
 }
 
-KR_MODULE_EXPORT(sysrepo)
\ No newline at end of file
+KR_MODULE_EXPORT(sysrepo)