Commit d0ac772b authored by Daniel Salzman's avatar Daniel Salzman

conf: rename conf_refresh to conf_refresh_txn

parent 42e58f73
......@@ -124,7 +124,7 @@ static int init_and_check(
return conf->api->txn_commit(&txn);
}
int conf_refresh(
int conf_refresh_txn(
conf_t *conf)
{
if (conf == NULL) {
......@@ -236,7 +236,7 @@ int conf_new(
}
// Open common read-only transaction.
ret = conf_refresh(out);
ret = conf_refresh_txn(out);
if (ret != KNOT_EOK) {
out->api->deinit(out->db);
goto new_error;
......@@ -291,7 +291,7 @@ int conf_clone(
out->db = s_conf->db;
// Open common read-only transaction.
ret = conf_refresh(out);
ret = conf_refresh_txn(out);
if (ret != KNOT_EOK) {
yp_scheme_free(out->scheme);
free(out);
......@@ -760,7 +760,7 @@ int conf_import(
}
// Update read-only transaction.
ret = conf_refresh(conf);
ret = conf_refresh_txn(conf);
if (ret != KNOT_EOK) {
goto import_error;
}
......
......@@ -123,11 +123,11 @@ conf_t* conf(void);
/*!
* Refreshes common read-only transaction.
*
* \param[out] conf Configuration.
* \param[in] conf Configuration.
*
* \return Error code, KNOT_EOK if success.
*/
int conf_refresh(
int conf_refresh_txn(
conf_t *conf
);
......
......@@ -336,7 +336,7 @@ static void test_conf_io_set()
ok(conf_io_commit(false) == KNOT_EOK, "commit txn");
// Update read-only transaction.
ok(conf_refresh(conf()) == KNOT_EOK, "update read-only txn");
ok(conf_refresh_txn(conf()) == KNOT_EOK, "update read-only txn");
}
static void test_conf_io_unset()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment