diff --git a/lib/defines.h b/lib/defines.h index 9121fa681de5d41220577cd5a3b0e14b6bbe6edd..944d02c5ff6c1d1dc3fecfa548efbbd7703a7510 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -35,7 +35,7 @@ /* * Connection limits. */ -#define KR_CONN_RTT_MAX 10000 +#define KR_CONN_RTT_MAX 5000 /* * Timers. diff --git a/lib/module.c b/lib/module.c index cc4ba6e5eedb679f38ea599689e16bcc483b08ff..e73db880986fe279c81e0d4199c24d2aac63314e 100644 --- a/lib/module.c +++ b/lib/module.c @@ -34,16 +34,14 @@ /** Check ABI version, return error on mismatch. */ #define ABI_CHECK(m, prefix, symname, required) do { \ - if ((m)->lib != RTLD_DEFAULT) { \ - module_api_cb *_api = NULL; \ - *(void **) (&_api) = load_symbol((m)->lib, (prefix), (symname)); \ - if (_api == NULL) { \ - return kr_error(ENOENT); \ - } \ - if (_api() != (required)) { \ - return kr_error(ENOTSUP); \ - } \ - }\ + module_api_cb *_api = NULL; \ + *(void **) (&_api) = load_symbol((m)->lib, (prefix), (symname)); \ + if (_api == NULL) { \ + return kr_error(ENOENT); \ + } \ + if (_api() != (required)) { \ + return kr_error(ENOTSUP); \ + } \ } while (0) /** Load ABI by symbol names. */ diff --git a/lib/rplan.c b/lib/rplan.c index 12cb9b0ccd122ad1750547bb271a9de362389d57..bab21484b73c0fcf056d93d6fe8b28fb03af1f0e 100644 --- a/lib/rplan.c +++ b/lib/rplan.c @@ -87,8 +87,6 @@ void kr_rplan_deinit(struct kr_rplan *rplan) if (rplan->txn.db != NULL) { kr_cache_txn_abort(&rplan->txn); } - - kr_rplan_init(rplan, rplan->context, rplan->pool); } bool kr_rplan_empty(struct kr_rplan *rplan)